Exemple #1
0
        public void UpdateSecurityRole(SecurityRolePoco[] items)
        {
            var logic = new SecurityRoleLogic
                            (new EFGenericRepository <SecurityRolePoco>());

            logic.Update(items);
        }
Exemple #2
0
        public void UpdateSecurityRole(SecurityRolePoco[] pocos)
        {
            ApplicantProfileRepository <SecurityRolePoco> repo = new ApplicantProfileRepository <SecurityRolePoco>(false);
            SecurityRoleLogic log = new SecurityRoleLogic(repo);

            log.Update(pocos);
        }
Exemple #3
0
        public void UpdateSecurityRole(SecurityRolePoco[] items)
        {
            EFGenericRepository <SecurityRolePoco> securityrolerepo = new EFGenericRepository <SecurityRolePoco>(false);
            SecurityRoleLogic _securityrolelogic = new SecurityRoleLogic(securityrolerepo);

            _securityrolelogic.Update(items);
        }
Exemple #4
0
        public void UpdateSecurityRole(SecurityRolePoco[] items)
        {
            EFGenericRepository <SecurityRolePoco> SecurityRoleRepo = new EFGenericRepository <SecurityRolePoco>(false);
            var Logic = new SecurityRoleLogic(SecurityRoleRepo);

            Logic.Update(items);
        }
Exemple #5
0
        public override Task <Empty> UpdateSecurityRole(SecRoleArray request, ServerCallContext context)
        {
            var pocos = ProtoToPoco(request);

            _logic.Update(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
        public ActionResult PutSecurityRole(
            [FromBody] SecurityRolePoco[] pocos)
        {
            _logic.Update(pocos);

            return(Ok());
        }
        public void UpdateSecurityRole(SecurityRolePoco[] pocos)
        {
            EFGenericRepository <SecurityRolePoco> repo = new EFGenericRepository <SecurityRolePoco>(false);
            SecurityRoleLogic logic = new SecurityRoleLogic(repo);

            logic.Update(pocos);
        }
 public IHttpActionResult PutSecurityRole(SecurityRolePoco[] securityRole)
 {
     if (securityRole == null)
     {
         return(NotFound());
     }
     _logic.Update(securityRole);
     return(Ok());
 }
Exemple #9
0
 public ActionResult Edit([Bind(Include = "Id,Role,IsInactive")] SecurityRolePoco securityRolePoco)
 {
     if (ModelState.IsValid)
     {
         secRolePoco[0] = securityRolePoco;
         securityRoleLogic.Update(secRolePoco);
         return(RedirectToAction("Index"));
     }
     return(View(securityRolePoco));
 }
Exemple #10
0
 public override Task <Empty> UpdateSecurityRole(SecurityRolePayload request, ServerCallContext context)
 {
     SecurityRolePoco[] pocos = { new SecurityRolePoco()
                                  {
                                      Id         = Guid.Parse(request.Id),
                                      Role       = request.Role,
                                      IsInactive = request.IsInactive
                                  } };
     _logic.Update(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
 public override Task <Empty> UpdateSecurityRole(SecurityRolePayload request, ServerCallContext context)
 {
     SecurityRolePoco[] pocos = new SecurityRolePoco[1];
     foreach (var poco in pocos)
     {
         poco.Id         = Guid.Parse(request.Id);
         poco.Role       = request.Role;
         poco.IsInactive = request.IsInactive;
     }
     _logic.Update(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
 public IHttpActionResult PutSecurityRole([FromBody] SecurityRolePoco[] pocos)
 {
     try
     {
         _logic.Update(pocos);
         return(Ok());
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        public override Task <Empty> UpdateSecurityRole(SecurityRolePayLoad request, ServerCallContext context)
        {
            SecurityRolePoco poco = new SecurityRolePoco()
            {
                Id         = new Guid(request.Id),
                Role       = request.Role,
                IsInactive = request.IsInactive
            };

            _logic.Update(new SecurityRolePoco[] { poco });

            return(null);
        }
Exemple #14
0
        public override Task <Empty> UpdateSecurityRole(SecurityRolePayload request, ServerCallContext context)
        {
            SecurityRolePoco[] pocos = new SecurityRolePoco[1];



            pocos[0].Id         = Guid.Parse(request.Id);
            pocos[0].Role       = request.Role;
            pocos[0].IsInactive = request.IsInactive;

            _logic.Update(pocos);
            return(new Task <Empty>(null));
        }
        public override Task <Empty> UpdateSecurityRole(SecurityRolePayload request, ServerCallContext context)
        {
            _ = _logic.Get(Guid.Parse(request.Id)) ?? throw new ArgumentNullException("No Security Role with this Id Found");
            SecurityRolePoco poco = new SecurityRolePoco()
            {
                Id         = Guid.Parse(request.Id),
                Role       = request.Role,
                IsInactive = request.IsInactive
            };

            _logic.Update(new SecurityRolePoco[] { poco });
            return(null);
        }
Exemple #16
0
 public ActionResult PutSecurityRole([FromBody] SecurityRolePoco[] pocos)
 {
     try
     {
         _logic.Update(pocos);
         return(Ok());
     }
     catch (AggregateException ex)
     {
         return(BadRequest(ex));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
 public IHttpActionResult PutSecurityRole([FromBody] SecurityRolePoco[] pocos)
 {
     try
     {
         _logicObj.Update(pocos);
         return(this.Ok());
     }
     catch (AggregateException e)
     {
         IEnumerable <ValidationException> exceptions = e.InnerExceptions.Cast <ValidationException>();
         HttpResponseMessage response =
             this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, exceptions.FirstOrDefault());
         throw new HttpResponseException(response);
     }
     catch (Exception e)
     {
         HttpResponseMessage response =
             this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e);
         throw new HttpResponseException(response);
     }
 }
 public void UpdateSecurityRole(SecurityRolePoco[] pocos)
 {
     _SecurityRoleLogic.Update(pocos);
 }
 public override Task <Empty> UpdateSecurityRole(SecurityRolePayload request, ServerCallContext context)
 {
     _logic.Update(GetArray(request));
     return(new Task <Empty>(null));
 }
Exemple #20
0
 public IHttpActionResult PutSecurityRole([FromBody] SecurityRolePoco[] SecurityRoles)
 {
     _logic.Update(SecurityRoles);
     return(Ok());
 }
Exemple #21
0
        public void UpdateSecurityRole(SecurityRolePoco[] pocos)
        {
            var logic = new SecurityRoleLogic(new EFGenericRepository <SecurityRolePoco>(false));

            logic.Update(pocos);
        }
Exemple #22
0
        // update record
        public void UpdateSecurityRole(SecurityRolePoco[] items)
        {
            var reference = new SecurityRoleLogic(new EFGenericRepository <SecurityRolePoco>(false));

            reference.Update(items);
        }
Exemple #23
0
 public void updateSecurityRolePoco(SecurityRolePoco[] items)
 {
     _logicSecurityRole.Update(items);
 }
 public void UpdateSecurityRole(SecurityRolePoco[] item)
 {
     _securityRole.Update(item);
 }
Exemple #25
0
 public void UpdateSecurityRole(SecurityRolePoco[] items)
 {
     _srLogic.Update(items);
 }