Пример #1
0
        public virtual async ValueTask <Tuple <ResponseStatus, object> > GetPlans()
        {
            var res = PlanManager.GetPlans();

            return(new Tuple <ResponseStatus, object>(
                       res != null
                    ? ResponseStatus.Success
                    : ResponseStatus.BadRequest,
                       res));
        }
Пример #2
0
 public IHttpActionResult PostListPlan(FilterData filter)
 {
     try
     {
         var result = PlanManager.GetPlans(filter);
         return(Ok(result));
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }