public IHttpActionResult GetAttribute(int id) { var attrib = _attributesDb.GetById(id); if (null == attrib) { return(NotFound()); } return(Ok(_contributionsDb.CreateViewModel(attrib))); }
public IHttpActionResult GetAttribute(int id) { var attrib = _attributesDb.GetById(id); if (null == attrib) { return(NotFound()); } return(Ok(_contributionsDb.CreateViewModel(attrib))); }