public JsonResult <BSEntityFramework_ResultType> ValidateLogin(LoginModel model) { Home_Activity homeActivity = new Home_Activity(); var BSResult = homeActivity.ValidateLogin(model.UserName); return(Json <BSEntityFramework_ResultType>(BSResult)); }
public JsonResult <BSEntityFramework_ResultType> SignUp(TBL_ShopLoginDetails model) { Home_Activity homeActivity = new Home_Activity(); var BSResult = homeActivity.SignUp(model); return(Json <BSEntityFramework_ResultType>(BSResult)); }
public JsonResult <ShopChangeStatus> ValidateAndChangeShop(ShopChangeRequest scr) { var validShopId = CommonSafeConvert.ToInt(scr.ShopId); if (validShopId > 0) { Home_Activity homeActivity = new Home_Activity(); Plugins_Activity pluginActivity = new Plugins_Activity(); if (homeActivity.IsValidShopForUser(scr.Userid, validShopId)) { var menuList = pluginActivity.GetPluginMenuDetailList(scr.Userid, validShopId); return (Json <ShopChangeStatus>( new ShopChangeStatus() { IsSuccess = true, Message = "Shop change successfully", MenuList = menuList })); } return(Json <ShopChangeStatus>( new ShopChangeStatus() { IsSuccess = false, Message = "Invalid Shop. Please logoff and login again.", MenuList = null })); } else { var result = new ShopChangeStatus { IsSuccess = false, Message = "Invalid Shop. Please logoff and login again.", MenuList = null }; return(Json <ShopChangeStatus>(result)); } }