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()));
 }
Exemplo n.º 2
0
        public override Task <Empty> UpdateSecurityLoginsRole(SecurityLoginsRolePayLoad request, ServerCallContext context)
        {
            SecurityLoginsRolePoco poco = new SecurityLoginsRolePoco()
            {
                Id    = new Guid(request.Id),
                Login = new Guid(request.Login),
                Role  = new Guid(request.Role)
            };

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

            return(null);
        }