Beispiel #1
0
        public HttpResponseMessage Delete(Guid id)
        {
            try
            {
                var result = plan.DeletePlan(id);

                if (result)
                {
                    plan.DeletePlan(id);
                    var response = new HttpResponseMessage()
                    {
                        StatusCode = HttpStatusCode.OK
                    };
                    return(response);
                }
                else
                {
                    var response = new HttpResponseMessage()
                    {
                        StatusCode = HttpStatusCode.BadRequest
                    };
                    return(response);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
 public void DeleteAboutUs()
 {
     _planBL.DeletePlan(1);
 }
Beispiel #3
0
 public void DeletePlan(int planID)
 {
     _plan.DeletePlan(planID);
 }