public IHttpActionResult Get([FromUri] UniversityFilter filter)
 {
     try
     {
         List <UniversityModel> list = _repository.GetAll(filter).Select(MapEntityToModel).ToList();
         var content = new EntitiesListResult <UniversityModel>
         {
             Data     = list,
             Page     = -1,
             PageSize = -1
         };
         ;
         content.Total = list.Count;
         return(Ok(content));
     }
     catch (Exception e)
     {
         return(HandleException(e));
     }
 }
 public IHttpActionResult Get()
 {
     try
     {
         List <IdTitle> list    = repository.GetAll().OrderBy(s => s.Id).ToList();
         var            content = new EntitiesListResult <IdTitle>
         {
             Data     = list,
             Page     = -1,
             PageSize = -1
         };
         ;
         content.Total = list.Count;
         return(Ok(content));
     }
     catch (Exception e)
     {
         return(HandleException(e));
     }
 }
 public IHttpActionResult Get([FromUri] StudyProgrammeFilter filter)
 {
     try
     {
         List <StudyProgrammeModel> list = repository.GetAll(filter).Select(MapEntityToModel).OrderBy(s => s.Id).ToList();
         var content = new EntitiesListResult <StudyProgrammeModel>
         {
             Data     = list,
             Page     = -1,
             PageSize = -1
         };
         ;
         content.Total = list.Count;
         return(Ok(content));
     }
     catch (Exception e)
     {
         return(HandleException(e));
     }
 }