예제 #1
0
        public ActionResult <AppGroupDTO> GetGroupWithProjectAndOrder(string groupCode)
        {
            Group test = _groups.GetByUniqueGroupCodeWithProjectAndOrder(groupCode);

            if (test == null)
            {
                return(NotFound(new CustomErrorDTO("Groep niet gevonden")));
            }

            return(new AppGroupDTO(test));
        }
 public ActionResult <AppGroupDTO> GetGroupWithProjectAndOrder(string groupCode)
 {
     try
     {
         return(new AppGroupDTO(_groups.GetByUniqueGroupCodeWithProjectAndOrder(groupCode)));
     }
     catch (ArgumentNullException)
     {
         return(NotFound(new CustomErrorDTO("Groep niet gevonden")));
     }
 }