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

            request.SimId = id;
            RemovePosSimResponse response = _posSimService.RemovePosSim(request);

            return(Json(response));
        }
예제 #2
0
        public RemovePosSimResponse RemovePosSim(RemovePosSimRequest request)
        {
            RemovePosSimResponse response = new RemovePosSimResponse();

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