public virtual async Task <IHttpActionResult> Get([FromUri] string fields) { try { if (string.IsNullOrEmpty(fields)) { return(Ok(EntityReader.GetIncludeList())); } var entities = await EntityReader.GetAllAsync(fields.Split(',')); return(Ok(Mapper.Map <IEnumerable <TModel> >(entities))); } catch (Exception ex) { return(InternalServerError(ex)); } }