Esempio n. 1
0
        public async Task <ResponseViewModel> Delete(int id)
        {
            var response = new ResponseViewModel
            {
                Result = true,
            };

            response.Result = await _brandService.Detete(id);

            response.Messages.Add(response.Result ? SuccessMessage : FailMessage);

            return(response);
        }