Exemplo n.º 1
0
        public async Task <IHttpActionResult> Delete(string moniker)
        {
            var camp = await _repository.GetCampAsync(moniker);

            if (camp == null)
            {
                return(NotFound());
            }

            await _repository.DeleteCampAsync(camp);


            await _repository.SaveChangesAsync();

            return(Ok());
        }