public JsonResult AssignToShop([FromBody] AssignDriverToShopModel assing) { // for the purpose of re using table AssignShop // i have in this case assummed that user id is the driver id , hope that helps var d = new AssignShop(); d.ShopsID = assing.ShopID; d.UserID = assing.DriverID; string AssignBy = Constant.GetUserID(); return(Json(ShopSQL.AssignShop(d, AssignBy))); }
public JsonResult EditShop([FromBody] ShopModel shop) { string UpdatedBy = Constant.GetUserID(); return(Json(ShopSQL.EditShop(shop, UpdatedBy), JsonRequestBehavior.AllowGet)); }
public JsonResult AssignShop([FromBody] AssignShop shop) { string AddedBy = Constant.GetUserID(); return(Json(ShopSQL.AssignShop(shop, AddedBy), JsonRequestBehavior.AllowGet)); }
public JsonResult GetUnAssignedShop() { return(Json(ShopSQL.GetUnAssignedShop(), JsonRequestBehavior.AllowGet)); }