public void RemoveCompanyLocation(CompanyLocationPoco[] items) { var logic = new CompanyLocationLogic (new EFGenericRepository <CompanyLocationPoco>()); logic.Delete(items); }
public void RemoveCompanyLocation(CompanyLocationPoco[] items) { EFGenericRepository <CompanyLocationPoco> CompanyLocationRepo = new EFGenericRepository <CompanyLocationPoco>(false); var Logic = new CompanyLocationLogic(CompanyLocationRepo); Logic.Delete(items); }
public override Task <Empty> DeleteCompanyLocation(CompLocArray request, ServerCallContext context) { var pocos = ProtoToPoco(request); _logic.Delete(pocos.ToArray()); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { CompanyLocationPoco poco = _logic.Get(Guid.Parse(request.Id)); _logic.Delete(new CompanyLocationPoco[] { poco }); return(new Task <Empty>(() => new Empty())); }
public void RemoveCompanyLocation(CompanyLocationPoco[] pocos) { EFGenericRepository <CompanyLocationPoco> repo = new EFGenericRepository <CompanyLocationPoco>(false); CompanyLocationLogic logic = new CompanyLocationLogic(repo); logic.Delete(pocos); }
public void RemoveCompanyLocation(CompanyLocationPoco[] pocos) { ApplicantProfileRepository <CompanyLocationPoco> repo = new ApplicantProfileRepository <CompanyLocationPoco>(false); CompanyLocationLogic log = new CompanyLocationLogic(repo); log.Delete(pocos); }
public ActionResult DeleteCompanyLocation( [FromBody] CompanyLocationPoco[] pocos) { _logic.Delete(pocos); return(Ok()); }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { _ = _logic.Get(Guid.Parse(request.Id)) ?? throw new ArgumentNullException("No Company Location Record with this Id Found "); _logic.Delete(new CompanyLocationPoco[] { _logic.Get(Guid.Parse(request.Id)) }); return(null); }
public void RemoveCompanyLocation(CompanyLocationPoco[] items) { EFGenericRepository <CompanyLocationPoco> companylocationrepo = new EFGenericRepository <CompanyLocationPoco>(false); CompanyLocationLogic _companylocationlogic = new CompanyLocationLogic(companylocationrepo); _companylocationlogic.Delete(items); }
public ActionResult DeleteConfirmed(Guid id) { CompanyLocationPoco companyLocationPoco = companyLocationLogic.Get(id); //db.CompanyLocations.Find(id); compLocationPoco[0] = companyLocationPoco; companyLocationLogic.Delete(compLocationPoco); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(Guid id) { CompanyLocationPoco companyLocationPoco = _logic.Get(id); // db.CompanyLocation.Find(id); //db.CompanyLocation.Remove(companyLocationPoco); //db.SaveChanges(); _logic.Delete(new CompanyLocationPoco[] { companyLocationPoco }); return(RedirectToAction("Index")); }
public IHttpActionResult DeleteCompanyLocation(CompanyLocationPoco[] companyLocation) { if (companyLocation == null) { return(NotFound()); } _logic.Delete(companyLocation); return(Ok()); }
public IHttpActionResult DeleteCompanyLocation([FromBody] CompanyLocationPoco[] pocos) { try { _logic.Delete(pocos); return(Ok()); } catch (Exception e) { return(InternalServerError(e)); } }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { CompanyLocationPoco[] pocos = new CompanyLocationPoco[1]; pocos[0].Id = Guid.Parse(request.Id); pocos[0].Company = Guid.Parse(request.Company); pocos[0].CountryCode = request.CountryCode; pocos[0].Province = request.Province; pocos[0].Street = request.Street; pocos[0].City = request.City; pocos[0].PostalCode = request.PostalCode; _logic.Delete(pocos); return(new Task <Empty>(null)); }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayLoad request, ServerCallContext context) { CompanyLocationPoco[] pocos = new CompanyLocationPoco[] { new CompanyLocationPoco() { Id = Guid.Parse(request.Id), Company = Guid.Parse(request.Company), CountryCode = request.CountryCode, Province = request.StateProvinceCode, Street = request.StreetAddress, City = request.CityTown, PostalCode = request.ZipPostalCode } }; _logic.Delete(pocos); return(new Task <Empty>(() => new Empty())); }
public ActionResult DeleteCompanyLocation([FromBody] CompanyLocationPoco[] pocos) { try { _logic.Delete(pocos); return(Ok()); } catch (AggregateException ex) { return(BadRequest(ex)); } catch { return(StatusCode(500)); } }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { CompanyLocationPoco[] poco = { new CompanyLocationPoco() { Id = Guid.Parse(request.Id), Company = Guid.Parse(request.Company), City = request.City, CountryCode = request.CountryCode, PostalCode = request.PostalCode, Province = request.Province, Street = request.Street } }; _logic.Delete(poco); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { CompanyLocationPoco[] pocos = new CompanyLocationPoco[1]; foreach (var poco in pocos) { poco.Id = Guid.Parse(request.Id); poco.Company = Guid.Parse(request.Company); poco.CountryCode = request.CountryCode; poco.Province = request.Province; poco.Street = request.Street; poco.City = request.City; poco.PostalCode = request.PostalCode; } _logic.Delete(pocos); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayLoad request, ServerCallContext context) { CompanyLocationPoco poco = new CompanyLocationPoco() { Id = new Guid(request.Id), Company = new Guid(request.Company), CountryCode = request.CountryCode, Province = request.Province, Street = request.Street, City = request.Street, PostalCode = request.PostalCode }; _logic.Delete(new CompanyLocationPoco[] { poco }); return(null); }
public IHttpActionResult DeleteCompanyLocation([FromBody] CompanyLocationPoco[] 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 removeCompanyLocationPoco(CompanyLocationPoco[] items) { _logicCompanyLocation.Delete(items); }
public override Task <Empty> DeleteCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { _logic.Delete(GetArray(request)); return(new Task <Empty>(null)); }
public void RemoveCompanyLocation(CompanyLocationPoco[] items) { var reference = new CompanyLocationLogic(new EFGenericRepository <CompanyLocationPoco>(false)); reference.Delete(items); }
public IHttpActionResult DeleteCompanyLocation([FromBody] CompanyLocationPoco[] CompanyLocations) { _logic.Delete(CompanyLocations); return(Ok()); }
public void RemoveCompanyLocation(CompanyLocationPoco[] item) { _clLogic.Delete(item); }
public void RemoveCompanyLocation(CompanyLocationPoco[] pocos) { _CompanyLocationLogic.Delete(pocos); }