public int EditStoreManager(StoreManagerModel model)
 {
     Hashtable HT = new Hashtable();
     HT.Add("StoreManagerID", model.StoreManagerID);
     HT.Add("UserName", model.Name);
     HT.Add("StoreManagerName", model.RegistrationNo);
     HT.Add("Email", model.RegDate);
     HT.Add("Mobile", model.Status);
     int i = dbContext.ExecuteSP("udp_StoreManager_ups", HT);
     return i;
 }
 //insert customer
 public HttpResponseMessage Post(StoreManagerModel StoreManager)
 {
     if (ModelState.IsValid)
     {
         db.AddStoreManager(StoreManager);
         HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, StoreManager);
         response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = StoreManager.StoreManagerID }));
         return response;
     }
     else
     {
         return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
     }
 }
 //update customer
 public HttpResponseMessage Put(int id, StoreManagerModel StoreManager)
 {
     if (!ModelState.IsValid)
     {
         return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
     }
     if (id != StoreManager.StoreManagerID)
     {
         return Request.CreateResponse(HttpStatusCode.BadRequest);
     }
     try
     {
         db.EditStoreManager(StoreManager);
     }
     catch (DbUpdateConcurrencyException ex)
     {
         return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
     }
     return Request.CreateResponse(HttpStatusCode.OK);
 }