Esempio n. 1
0
        public IHttpActionResult Delete([FromUri] DateTime datefrom,
                                        [FromUri] DateTime dateto,
                                        [FromUri] string salesarea)
        {
            var items = _programmeRepository.Search(datefrom, dateto, salesarea);

            foreach (var p in items)
            {
                _programmeRepository.Remove(p.Id);
            }
            _programmeRepository.SaveChanges();

            return(Ok());
        }