Exemplo n.º 1
0
        public async Task <ActionResult> DeleteAsync(Guid id)
        {
            var state = await _applicationServiceState.GetByIdAsync(id);

            await _applicationServiceState.RemoveAsync(state);

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Remove(Guid id)
        {
            var state = await _applicationServiceState.GetStateCountryByIdAsync(id);

            if (state == null)
            {
                Notify("O estado é inválido.");
                return(OkResult());
            }
            await _applicationServiceState.RemoveAsync(state);

            return(OkResult());
        }