// DELETE api/values/5
        public String Delete(String id)
        {
            RefuseModel refusemodel   = new RefuseModel();
            CloudTable  table         = refusemodel.Table("RefuseCollect");
            String      Deleteoutcome = refusemodel.Deleteentry(table, id);

            return(Deleteoutcome);
        }
        public String Put([FromBody] PutRefuse putrefuse)
        {
            RefuseModel refusemodel = new RefuseModel();

            CloudTable table = refusemodel.Table("RefuseCollect");

            String updatebyputrefuse = refusemodel.UpdatebyPutrefuse(table, putrefuse);

            return(updatebyputrefuse);
        }
        public String Post([FromBody] PostRefuse postrefuse)
        {
            RefuseModel refusemodel = new RefuseModel();

            CloudTable table = refusemodel.Table("RefuseCollect");

            String insertbypostrefuse = refusemodel.InsertbyPostrefuse(table, postrefuse);

            return(insertbypostrefuse);
        }
        // GET api/values
        public IEnumerable <RefuseEntity> Get(String id)
        {
            //string pcode = "Dublin 7";
            RefuseModel refusemodel = new RefuseModel();

            CloudTable table = refusemodel.Table("RefuseCollect");

            var results = refusemodel.Selectbyid(id, table);

            return(results);
        }
        public RefuseEntity Get(String id, String pareaid)
        {
            RefuseModel refusemodel = new RefuseModel();

            CloudTable table = refusemodel.Table("RefuseCollect");

            var selectrefuse = new PutRefuse()
            {
                id = id, pareaid = pareaid
            };

            var results = refusemodel.RetrieveRefuse(table, selectrefuse);

            return(results);
        }