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); }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items) { EFGenericRepository <SecurityLoginsRolePoco> SecurityLoginsRoleRepo = new EFGenericRepository <SecurityLoginsRolePoco>(false); var Logic = new SecurityLoginsRoleLogic(SecurityLoginsRoleRepo); Logic.Delete(items); }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] pocos) { ApplicantProfileRepository <SecurityLoginsRolePoco> repo = new ApplicantProfileRepository <SecurityLoginsRolePoco>(false); SecurityLoginsRoleLogic log = new SecurityLoginsRoleLogic(repo); log.Delete(pocos); }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items) { EFGenericRepository <SecurityLoginsRolePoco> securityloginsrolerepo = new EFGenericRepository <SecurityLoginsRolePoco>(false); SecurityLoginsRoleLogic _securityloginsrolelogic = new SecurityLoginsRoleLogic(securityloginsrolerepo); _securityloginsrolelogic.Delete(items); }
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())); }
public override Task <Empty> DeleteSecurityLoginsRole(SecLoginsRoleArray request, ServerCallContext context) { var pocos = ProtoToPoco(request); _logic.Delete(pocos.ToArray()); return(new Task <Empty>(() => new Empty())); }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] pocos) { EFGenericRepository <SecurityLoginsRolePoco> repo = new EFGenericRepository <SecurityLoginsRolePoco>(false); SecurityLoginsRoleLogic logic = new SecurityLoginsRoleLogic(repo); logic.Delete(pocos); }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items) { var logic = new SecurityLoginsRoleLogic (new EFGenericRepository <SecurityLoginsRolePoco>()); logic.Delete(items); }
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)); } }
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); }
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)); }
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); } }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] item) { _securityLoginsRole.Delete(item); }
public void removeSecurityLoginsRolePoco(SecurityLoginsRolePoco[] items) { _logicLoginRole.Delete(items); }
public override Task <Empty> DeleteSecurityLoginsRole(SecurityLoginsRolePayload request, ServerCallContext context) { _logic.Delete(GetArray(request)); return(new Task <Empty>(null)); }
// remove record public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] items) { var reference = new SecurityLoginsRoleLogic(new EFGenericRepository <SecurityLoginsRolePoco>(false)); reference.Delete(items); }
public void RemoveSecurityLoginsRole(SecurityLoginsRolePoco[] pocos) { _SecurityLoginsRoleLogic.Delete(pocos); }