public IActionResult GetResidents([FromBody] ResidentsFilterParams filterParams) { var userModel = User.GetUserModel(); filterParams.FacilityId = userModel.FacilityId; filterParams.DoctorId = userModel.DoctorId; var residents = _residentService.GetResidentsByParams(filterParams); return(Json(JsonResultData.Success(residents))); }