public IActionResult GetByCategory(string personelName) { var result = _personelService.GetListByPersonelName(personelName); if (result.Success) { return(Ok(result.Data)); } return(BadRequest(result.Message)); }
public IActionResult GetByCategory(string personelName) { var result = _personelService.GetListByPersonelName(personelName); if (result.Success) { return(Ok(result.Data)); } return(BadRequest(result.Message)); }