public virtual IHttpActionResult Read(Guid id) { if (ModelState.IsValid) { var result = _intranetUserService.Read(id); return(result .Match( Some: dto => (IHttpActionResult)Ok(dto), None: NotFound)); } else { return(BadRequest(GetModelErrors())); } }