Esempio n. 1
0
        public async Task <IHttpActionResult> Delete(string moniker, int id)
        {
            var talk = await _repository.GetTalkByMonikerAsync(moniker, id);

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

            await _repository.DeleteTalkAsync(talk);

            await _repository.SaveChangesAsync();

            return(Ok());
        }