public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayload request, ServerCallContext context)
 {
     _ = _logic.Get(Guid.Parse(request.Id)) ??
         throw new ArgumentNullException("No Security Login Role with this Id Found ");
     _logic.Delete(new SecurityLoginsRolePoco[] { _logic.Get(Guid.Parse(request.Id)) });
     return(null);
 }
예제 #2
0
        public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items)
        {
            EFGenericRepository <SecurityLoginsRolePoco> SecurityLoginsRoleRepo = new EFGenericRepository <SecurityLoginsRolePoco>(false);
            var Logic = new SecurityLoginsRoleLogic(SecurityLoginsRoleRepo);

            Logic.Delete(items);
        }
예제 #3
0
        public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] pocos)
        {
            ApplicantProfileRepository <SecurityLoginsRolePoco> repo = new ApplicantProfileRepository <SecurityLoginsRolePoco>(false);
            SecurityLoginsRoleLogic log = new SecurityLoginsRoleLogic(repo);

            log.Delete(pocos);
        }
예제 #4
0
        public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items)
        {
            EFGenericRepository <SecurityLoginsRolePoco> securityloginsrolerepo = new EFGenericRepository <SecurityLoginsRolePoco>(false);
            SecurityLoginsRoleLogic _securityloginsrolelogic = new SecurityLoginsRoleLogic(securityloginsrolerepo);

            _securityloginsrolelogic.Delete(items);
        }
예제 #5
0
        public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayload request, ServerCallContext context)
        {
            SecurityLoginsRolePoco poco = _logic.Get(Guid.Parse(request.Id));

            _logic.Delete(new SecurityLoginsRolePoco[] { poco });
            return(new Task <Empty>(() => new Empty()));
        }
예제 #6
0
        public override Task <Empty> DeleteSecurityLoginsRole(SecLoginsRoleArray request, ServerCallContext context)
        {
            var pocos = ProtoToPoco(request);

            _logic.Delete(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
예제 #7
0
        public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] pocos)
        {
            EFGenericRepository <SecurityLoginsRolePoco> repo = new EFGenericRepository <SecurityLoginsRolePoco>(false);
            SecurityLoginsRoleLogic logic = new SecurityLoginsRoleLogic(repo);

            logic.Delete(pocos);
        }
예제 #8
0
        public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items)
        {
            var logic = new SecurityLoginsRoleLogic
                            (new EFGenericRepository <SecurityLoginsRolePoco>());

            logic.Delete(items);
        }
예제 #9
0
        public ActionResult DeleteSecurityLoginRole(
            [FromBody] SecurityLoginsRolePoco[] pocos)
        {
            _logic.Delete(pocos);

            return(Ok());
        }
        public ActionResult DeleteConfirmed(Guid id)
        {
            SecurityLoginsRolePoco securityLoginsRolePoco = securityLoginsRoleLogic.Get(id); //db.SecurityLoginsRoles.Find(id);

            secLoginsRolePoco[0] = securityLoginsRolePoco;
            securityLoginsRoleLogic.Delete(secLoginsRolePoco);
            return(RedirectToAction("Index"));
        }
 public IHttpActionResult DeleteSecurityLoginRole(SecurityLoginsRolePoco[] securityLoginRole)
 {
     if (securityLoginRole == null)
     {
         return(NotFound());
     }
     _logic.Delete(securityLoginRole);
     return(Ok());
 }
 public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayLoad request, ServerCallContext context)
 {
     SecurityLoginsRolePoco[] pocos = new SecurityLoginsRolePoco[] { new SecurityLoginsRolePoco()
                                                                     {
                                                                         Id    = Guid.Parse(request.Id),
                                                                         Login = Guid.Parse(request.Login),
                                                                         Role  = Guid.Parse(request.Role)
                                                                     } };
     _logic.Delete(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
 public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayload request, ServerCallContext context)
 {
     SecurityLoginsRolePoco[] pocos = new SecurityLoginsRolePoco[1];
     foreach (var poco in pocos)
     {
         poco.Id    = Guid.Parse(request.Id);
         poco.Login = Guid.Parse(request.Login);
         poco.Role  = poco.Role;
     }
     _logic.Delete(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
 public IHttpActionResult DeleteSecurityLoginsRole([FromBody] SecurityLoginsRolePoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
예제 #15
0
        public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayLoad request, ServerCallContext context)
        {
            SecurityLoginsRolePoco poco = new SecurityLoginsRolePoco()
            {
                Id    = new Guid(request.Id),
                Login = new Guid(request.Login),
                Role  = new Guid(request.Role)
            };

            _logic.Delete(new SecurityLoginsRolePoco[] { poco });


            return(null);
        }
예제 #16
0
        public override Task <Empty> DeleteSecurityLoginRole(SecurityLoginRolePayload request, ServerCallContext context)
        {
            SecurityLoginsRolePoco[] pocos = new SecurityLoginsRolePoco[1];


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



            _logic.Delete(pocos);
            return(new Task <Empty>(null));
        }
예제 #17
0
 public ActionResult DeleteSecurityLoginRole([FromBody] SecurityLoginsRolePoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok());
     }
     catch (AggregateException ex)
     {
         return(BadRequest(ex));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
 public IHttpActionResult DeleteSecurityLoginRole([FromBody] SecurityLoginsRolePoco[] pocos)
 {
     try
     {
         _logicObj.Delete(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);
     }
 }
예제 #19
0
 public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] item)
 {
     _securityLoginsRole.Delete(item);
 }
예제 #20
0
 public void removeSecurityLoginsRolePoco(SecurityLoginsRolePoco[] items)
 {
     _logicLoginRole.Delete(items);
 }
예제 #21
0
 public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayload request, ServerCallContext context)
 {
     _logic.Delete(GetArray(request));
     return(new Task <Empty>(null));
 }
예제 #22
0
        // remove record
        public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items)
        {
            var reference = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false));

            reference.Delete(items);
        }
예제 #23
0
 public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] pocos)
 {
     _SecurityLoginsRoleLogic.Delete(pocos);
 }