public JsonResult LocalPhones_read_ByEmployee(Guid EmployeeID) { GetGeneralResponse <IEnumerable <LocalPhoneView> > response = new GetGeneralResponse <IEnumerable <LocalPhoneView> >(); response = _localPhoneService.GetLocalPhonesByEmployee(EmployeeID); return(Json(response, JsonRequestBehavior.AllowGet)); }
public JsonResult LocalPhones_Read(int?pageSize, int?pageNumber) { GetGeneralResponse <IEnumerable <LocalPhoneView> > response = new GetGeneralResponse <IEnumerable <LocalPhoneView> >(); Guid EmployeeID = GetEmployee().ID; response = _localPhoneService.GetLocalPhonesByEmployee(EmployeeID); return(Json(response, JsonRequestBehavior.AllowGet)); }