public JsonResult Delete(System.Int32 id)
        {
            RemovePosStatusTerminalRequest request = new RemovePosStatusTerminalRequest();

            request.TerminalStatusId = id;
            RemovePosStatusTerminalResponse response = _posStatusTerminalService.RemovePosStatusTerminal(request);

            return(Json(response));
        }
        public RemovePosStatusTerminalResponse RemovePosStatusTerminal(RemovePosStatusTerminalRequest request)
        {
            RemovePosStatusTerminalResponse response = new RemovePosStatusTerminalResponse();

            response.Errors = new List <BusinessRule>();
            try {
                if (_posStatusTerminalRepository.Remove(request.TerminalStatusId) > 0)
                {
                    response.PosStatusTerminalDeleted = true;
                }
            } catch (Exception ex)
            {
                response.Errors.Add(new BusinessRule("DAL", "DAL_ERROR: " + ex.Message));
            }
            return(response);
        }