public virtual async ValueTask <Tuple <ResponseStatus, object> > GetPlans() { var res = PlanManager.GetPlans(); return(new Tuple <ResponseStatus, object>( res != null ? ResponseStatus.Success : ResponseStatus.BadRequest, res)); }
public IHttpActionResult PostListPlan(FilterData filter) { try { var result = PlanManager.GetPlans(filter); return(Ok(result)); } catch (Exception) { return(NotFound()); } }