public IHttpActionResult Get(Guid id) { if (!ModelState.IsValid) { return(this.Error().InvalidParameters()); } var restriction = _restrictionRepository.GetDesc(id); if (restriction != null) { return(Ok(_mapper.Map <RestrictionWithDescModel>(restriction))); } return(NotFound()); }