public ActionResult Edit(int Id)
        {
            AlarmSystemGsmAddRcptModel model = new AlarmSystemGsmAddRcptModel();

            this._provider = new GsmConfigurationService(DomainSession.GetAlarmConfigForContextSession(this.HttpContext));
            model.GsmRcpt  = _provider.GetById(Id);
            return(View(model));
        }
        public ActionResult Remove(sconnGsmRcpt Rcpt)
        {
            AlarmSystemGsmAddRcptModel model = new AlarmSystemGsmAddRcptModel();

            this._provider = new GsmConfigurationService(DomainSession.GetAlarmConfigForContextSession(this.HttpContext));
            var remRes = this._provider.Remove(Rcpt);

            model.Result = StatusResponseGenerator.GetStatusResponseResultForReturnParam(remRes);
            return(View(model));
        }
 public async Task <ActionResult> Edit(AlarmSystemGsmAddRcptModel model)
 {
     try
     {
         this._provider = new GsmConfigurationService(DomainSession.GetAlarmConfigForContextSession(this.HttpContext));
         if (ModelState.IsValid)
         {
             var res = (_provider.Update(model.GsmRcpt));
             model.Result = StatusResponseGenerator.GetStatusResponseResultForReturnParam(res);
         }
     }
     catch (Exception e)
     {
         model.Result = StatusResponseGenerator.GetRequestResponseCriticalError();
     }
     return(View(model));
 }
        public ActionResult Add()
        {
            AlarmSystemGsmAddRcptModel model = new AlarmSystemGsmAddRcptModel();

            return(View(model));
        }