Example #1
0
        public async Task <ActionResult> Delete(Guid uuid)
        {
            var result = await _phoneService.DeleteAsync(uuid);

            if (!result.IsSuccessful)
            {
                return(FailResult(result));
            }
            if (await _unitOfWork.SaveChangesAsync())
            {
                return(NoContent());
            }
            return(ErrorResult());
        }