Beispiel #1
0
        public IHttpActionResult Delete(int id)
        {
            string response = _brandManager.DeleteBrand(id);

            if (response != "deleted")
            {
                return(InternalServerError());
            }
            return(Ok());
        }
        public async Task <IActionResult> ConfirmDelete(BrandModel model)
        {
            if (model != null)
            {
                var result = await _brandManager.DeleteBrand(model.Id);

                if (result)
                {
                    return(RedirectToAction("List"));
                }
            }
            AddError("Cannot delete empty brand.");
            return(View());
        }
        public IHttpActionResult Delete(int BrandId)
        {
            var response = _IBrandManager.DeleteBrand(BrandId);

            return(Ok(response));
        }
Beispiel #4
0
 public async Task Delete(EntityDto <long> input)
 {
     await BrandManager.DeleteBrand(input.Id);
 }