Beispiel #1
0
        public IHttpActionResult DeleteAboutUs(int Id)
        {
            HowToInvolve howtoinvolve = new HowToInvolve();

            var howtoinvolveservice = new HowToInvolveService();

            howtoinvolveservice.DeleteHowToInvolve(Id);

            return(Ok(howtoinvolve));
        }
Beispiel #2
0
        public IHttpActionResult DeleteAboutUs1([FromBody] HowToInvolve value)
        {
            HowToInvolve howtoinvolve = new HowToInvolve();

            var howtoinvolveservice = new HowToInvolveService();

            howtoinvolveservice.DeleteHowToInvolve(value.Id);

            return(Ok(howtoinvolve));
        }
Beispiel #3
0
        public IHttpActionResult UpdateHowToInvolve([FromBody] HowToInvolve value)
        {
            HowToInvolve howtoinvolve = new HowToInvolve();

            var howtoinvolveservice = new HowToInvolveService();

            howtoinvolveservice.UpdateHowToInvolve(value);

            return(Ok(howtoinvolve));
        }
Beispiel #4
0
        public IEnumerable <HowToInvolve> Get()
        {
            List <HowToInvolve> howtoinvolve = new List <HowToInvolve>();

            try
            {
                var howtoinvolveservice = new HowToInvolveService();
                howtoinvolve = (List <HowToInvolve>)howtoinvolveservice.GetHowToInvolve();
            }
            catch
            {
            }

            return(howtoinvolve);
        }
Beispiel #5
0
        public HttpResponseMessage GetHowToInvolve1()
        {
            List <HowToInvolve> howtoinvolve = new List <HowToInvolve>();

            try
            {
                var howtoinvolveservice = new HowToInvolveService();
                howtoinvolve = (List <HowToInvolve>)howtoinvolveservice.GetHowToInvolve();
            }
            catch
            {
            }

            return(Request.CreateResponse(HttpStatusCode.OK, howtoinvolve));

            //return ToJson(howtoinvolve);

            //JavaScriptSerializer json = new JavaScriptSerializer();
            //string output = json.Serialize(howtoinvolve);

            //return output;
        }