Ejemplo n.º 1
0
        public async Task <IActionResult> RetrieveStaffByStaffByUserType(int userType)
        {
            try
            {
                var staff = await _staffAppService.RetrieveStaffByUserType(userType);

                if (staff == null)
                {
                    return(NotFound("No Staff Found"));
                }
                return(Ok(staff));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }