Exemple #1
0
        public async Task <IActionResult> Delete(string id, [FromBody] Customer item)
        {
            await cmd.DeleteAsync(item);

            var e = new Envelope <string>($"Customer {item.Name} has been deleted successfully.", (int)HttpStatusCode.OK);

            return(Ok(e));
        }