public JsonResult GetApprovedDoctorsByRegion(string regionCode) { DataControl.BL_Customer _objCus = new DataControl.BL_Customer(); DataControl.CurrentInfo _objCurInfo = new DataControl.CurrentInfo(); List <MVCModels.HiDoctor_Master.DoctorModel> lstDoctor = new List <MVCModels.HiDoctor_Master.DoctorModel>(); lstDoctor = _objCus.GetApprovedDoctorsByRegion(_objCurInfo.GetCompanyCode(), regionCode); DataControl.JSONConverter _objJson = new DataControl.JSONConverter(); return(Json(_objJson.Serialize(lstDoctor))); }
public JsonResult EmployeeDetails(string user_Code) { List <UserModel> lstEmployee = new List <UserModel>(); DataControl.BL_Customer _objCustomer = new DataControl.BL_Customer(); DataControl.CurrentInfo objCurInfo = new CurrentInfo(); // string company_code = objCurInfo.GetCompanyCode(); lstEmployee = _objdcrLock.EmployeeDetails(objCurInfo.GetCompanyCode(), user_Code).ToList(); return(Json(lstEmployee, JsonRequestBehavior.AllowGet)); }