public void UpdateSecurityRole(SecurityRolePoco[] items) { var logic = new SecurityRoleLogic (new EFGenericRepository <SecurityRolePoco>()); logic.Update(items); }
public void UpdateSecurityRole(SecurityRolePoco[] pocos) { ApplicantProfileRepository <SecurityRolePoco> repo = new ApplicantProfileRepository <SecurityRolePoco>(false); SecurityRoleLogic log = new SecurityRoleLogic(repo); log.Update(pocos); }
public void UpdateSecurityRole(SecurityRolePoco[] items) { EFGenericRepository <SecurityRolePoco> securityrolerepo = new EFGenericRepository <SecurityRolePoco>(false); SecurityRoleLogic _securityrolelogic = new SecurityRoleLogic(securityrolerepo); _securityrolelogic.Update(items); }
public void UpdateSecurityRole(SecurityRolePoco[] items) { EFGenericRepository <SecurityRolePoco> SecurityRoleRepo = new EFGenericRepository <SecurityRolePoco>(false); var Logic = new SecurityRoleLogic(SecurityRoleRepo); Logic.Update(items); }
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()); }
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)); }
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); }
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); }
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)); }
public IHttpActionResult PutSecurityRole([FromBody] SecurityRolePoco[] SecurityRoles) { _logic.Update(SecurityRoles); return(Ok()); }
public void UpdateSecurityRole(SecurityRolePoco[] pocos) { var logic = new SecurityRoleLogic(new EFGenericRepository <SecurityRolePoco>(false)); logic.Update(pocos); }
// update record public void UpdateSecurityRole(SecurityRolePoco[] items) { var reference = new SecurityRoleLogic(new EFGenericRepository <SecurityRolePoco>(false)); reference.Update(items); }
public void updateSecurityRolePoco(SecurityRolePoco[] items) { _logicSecurityRole.Update(items); }
public void UpdateSecurityRole(SecurityRolePoco[] item) { _securityRole.Update(item); }
public void UpdateSecurityRole(SecurityRolePoco[] items) { _srLogic.Update(items); }