Ejemplo n.º 1
0
        public async Task <ActionResult> Delete(string id)
        {
            var user = await _userRep.FindEntityAsync <ADUserT>(id);

            if (user != null)
            {
                await _userRep.DeleteAsync(user);

                return(NoContent());
            }

            return(NotFound("Cannot find key."));
        }