예제 #1
0
        public ReturnAllServices Delete(int id)
        {
            ReturnAllServices returnService = new ReturnAllServices();

            try
            {
                returnService.Result       = true;
                returnService.ErrorMessage = "Cliente excluído com sucesso!";
                AuthenficateService.Authenticate();
                new ClientModel().Delete(id);
            }
            catch (Exception ex)
            {
                returnService.Result       = false;
                returnService.ErrorMessage = ex.Message;
            }
            return(returnService);
        }