Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public IHttpActionResult PostListPlan(FilterData filter)
 {
     try
     {
         var result = PlanManager.GetPlans(filter);
         return(Ok(result));
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }