Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Want to create drop down list using angular js and bind this list from drop down and want to selected value in to controller post method

want to get dropdown value from databse using mvc angular js and db context file and want to catch selced value in to
public async Task<HttpResponseMessage> Post(int id, [KendoDataSourceRequest] DataSourceRequest request, CarrierModel model)
     {
         if (!ModelState.IsValid)
         {
             return Request.ToDataSourceResult(request, model, ModelState);
         }

         var data = await _db.Carriers.FindAsync(id);
         data.CarrierId = model.CarrierId;
         data.CarrierName = model.CarrierName;
         data.Address1 = model.Address1;
         data.Address2 = model.Address2;
         data.City = model.City;
         data.StateId = model.StateId;
         data.CarrierTypeId = model.CarrierTypeId;
         data.PostalCode = model.PostalCode;
         data.Logo = model.Logo;
         data.LogoType = model.LogoType;
         data.Active = model.Active;

         await _db.SaveChangesAsync();

         return Request.ToDataSourceResult(request, model);
     }

this method

What I have tried:

No idea about his please help me out to comepllete the things
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900