Пример #1
0
        public HttpResponseMessage DeleteContactUs(int id)
        {
            SuccessResponse response = new SuccessResponse();

            ContactUsService.DeleteContactUs(id);
            return(Request.CreateResponse(response));
        }
        public IHttpActionResult DeleteContactUs(int Id)
        {
            ContactUs contactus = new ContactUs();

            var contactusservice = new ContactUsService();

            contactusservice.DeleteContactUs(Id);

            return(Ok(contactus));
        }
        public IHttpActionResult DeleteContactUs1([FromBody] ContactUs value)
        {
            ContactUs contactus = new ContactUs();

            var contactusservice = new ContactUsService();

            contactusservice.DeleteContactUs(value.Id);

            return(Ok(contactus));
        }