Example #1
0
        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)));
        }
Example #2
0
        public JsonResult EditShop([FromBody] ShopModel shop)
        {
            string UpdatedBy = Constant.GetUserID();

            return(Json(ShopSQL.EditShop(shop, UpdatedBy), JsonRequestBehavior.AllowGet));
        }
Example #3
0
        public JsonResult AssignShop([FromBody] AssignShop shop)
        {
            string AddedBy = Constant.GetUserID();

            return(Json(ShopSQL.AssignShop(shop, AddedBy), JsonRequestBehavior.AllowGet));
        }
Example #4
0
 public JsonResult GetUnAssignedShop()
 {
     return(Json(ShopSQL.GetUnAssignedShop(), JsonRequestBehavior.AllowGet));
 }