Exemplo n.º 1
0
        public object Delete(Pais pais)
        {
            string msgError = "";
            bool   result   = repository.Remove(pais, ref msgError);

            object json = new
            {
                success = result,
                message = msgError
            };

            return(json);
        }
Exemplo n.º 2
0
 public void Delete(string id)
 {
     _repo.Remove(id);
 }