Ejemplo n.º 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)));
        }
Ejemplo n.º 2
0
        public JsonResult AssignShop([FromBody] AssignShop shop)
        {
            string AddedBy = Constant.GetUserID();

            return(Json(ShopSQL.AssignShop(shop, AddedBy), JsonRequestBehavior.AllowGet));
        }