public IActionResult DeletePlan(string id)
        {
            try
            {
                _planData.DeletePlan(id);

                return(Ok());
            }
            catch (Exception ex)
            {
                _apiErrorHandler.CreateError(ex.Source, ex.StackTrace, ex.Message);
            }

            return(StatusCode(500));
        }
Exemplo n.º 2
0
 public async Task <bool> DeletePlan(Guid planGuid)
 {
     return(await _planData.DeletePlan(planGuid).ConfigureAwait(false));
 }