public IActionResult GetUserByCode(string usercode) { var res = _pfd.GetUserByCode(usercode); if (res == null) { return(NotFound()); } return(Ok(res)); }