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