public void AddCompanyLocation(CompanyLocationPoco[] items) { EFGenericRepository <CompanyLocationPoco> CompanyLocationRepo = new EFGenericRepository <CompanyLocationPoco>(false); var Logic = new CompanyLocationLogic(CompanyLocationRepo); Logic.Add(items); }
public void AddCompanyLocation(CompanyLocationPoco[] items) { var logic = new CompanyLocationLogic (new EFGenericRepository <CompanyLocationPoco>()); logic.Add(items); }
public void AddCompanyLocation(CompanyLocationPoco[] pocos) { EFGenericRepository <CompanyLocationPoco> repo = new EFGenericRepository <CompanyLocationPoco>(false); CompanyLocationLogic logic = new CompanyLocationLogic(repo); logic.Add(pocos); }
public void AddCompanyLocation(CompanyLocationPoco[] pocos) { ApplicantProfileRepository <CompanyLocationPoco> repo = new ApplicantProfileRepository <CompanyLocationPoco>(false); CompanyLocationLogic log = new CompanyLocationLogic(repo); log.Add(pocos); }
public ActionResult PostCompanyLocation( [FromBody] CompanyLocationPoco[] pocos) { _logic.Add(pocos); return(Ok()); }
public override Task <Empty> CreateCompanyLocation(CompLocArray request, ServerCallContext context) { var pocos = ProtoToPoco(request); _logic.Add(pocos.ToArray()); return(new Task <Empty>(() => new Empty())); }
public void AddCompanyLocation(CompanyLocationPoco[] item) { EFGenericRepository <CompanyLocationPoco> companylocationrepo = new EFGenericRepository <CompanyLocationPoco>(false); CompanyLocationLogic _companylocationlogic = new CompanyLocationLogic(companylocationrepo); _companylocationlogic.Add(item); }
public IHttpActionResult PostCompanyLocation(CompanyLocationPoco[] companyLocation) { if (companyLocation == null) { return(NotFound()); } _logic.Add(companyLocation); return(Ok()); }
public IHttpActionResult PostCompanyLocation([FromBody] CompanyLocationPoco[] pocos) { try { _logic.Add(pocos); return(Ok()); } catch (Exception e) { return(InternalServerError(e)); } }
public ActionResult Create([Bind(Include = "Id,CountryCode,Province,Street,City,PostalCode,TimeStamp,Company")] CompanyLocationPoco companyLocationPoco) { if (ModelState.IsValid) { companyLocationPoco.Id = Guid.NewGuid(); //db.CompanyLocation.Add(companyLocationPoco); //db.SaveChanges(); _logic.Add(new CompanyLocationPoco[] { companyLocationPoco }); return(RedirectToAction("Index")); } ViewBag.Company = new SelectList(db.CompanyProfile, "Id", "CompanyWebsite", companyLocationPoco.Company); return(View(companyLocationPoco)); }
public ActionResult Create([Bind(Include = "Id,Company,CountryCode,Province,Street,City,PostalCode,TimeStamp")] CompanyLocationPoco companyLocationPoco) { if (ModelState.IsValid) { companyLocationPoco.Id = Guid.NewGuid(); compLocationPoco[0] = companyLocationPoco; companyLocationLogic.Add(compLocationPoco); return(RedirectToAction("Index")); } ViewBag.Company = new SelectList(companyLocationLogic.GetAll(), "Company", "Company"); return(View(companyLocationPoco)); }
public override Task <Empty> CreateCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { CompanyLocationPoco[] pocos = { new CompanyLocationPoco() { Id = Guid.Parse(request.Id), Company = Guid.Parse(request.Company), Street = request.Street, City = request.City, Province = request.Province, CountryCode = request.CountryCode, PostalCode = request.PostalCode } }; _logic.Add(pocos); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> CreateCompanyLocation(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.Add(pocos); return(new Task <Empty>(null)); }
public ActionResult PostCompanyLocation([FromBody] CompanyLocationPoco[] pocos) { try { _logic.Add(pocos); return(Ok()); } catch (AggregateException ae) { return(BadRequest(ae)); } catch { return(StatusCode(500)); } }
public override Task <Empty> CreateCompanyLocation(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.Add(pocos); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> CreateCompanyLocation(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.Add(new CompanyLocationPoco[] { poco }); return(null); }
public IHttpActionResult PostCompanyLocation([FromBody] CompanyLocationPoco[] pocos) { try { _logicObj.Add(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 addCompanyLocationPoco(CompanyLocationPoco[] items) { _logicCompanyLocation.Add(items); }
public void AddCompanyLocation(CompanyLocationPoco[] pocos) { var logic = new CompanyLocationLogic(new EFGenericRepository <CompanyLocationPoco>(false)); logic.Add(pocos); }
public override Task <Empty> CreateCompanyLocation(CompanyLocationPayload request, ServerCallContext context) { _logic.Add(GetArray(request)); return(new Task <Empty>(null)); }
public void AddCompanyLocation(CompanyLocationPoco[] items) { var reference = new CompanyLocationLogic(new EFGenericRepository <CompanyLocationPoco>(false)); reference.Add(items); }
public IHttpActionResult PostCompanyLocation([FromBody] CompanyLocationPoco[] CompanyLocations) { _logic.Add(CompanyLocations); return(Ok()); }
public void AddCompanyLocation(CompanyLocationPoco[] item) { _clLogic.Add(item); }
public void AddCompanyLocation(CompanyLocationPoco[] pocos) { _CompanyLocationLogic.Add(pocos); }
public ActionResult PostCompanyLocation( [FromBody] CompanyLocationPoco[] companyLocationsPoco) { _logic.Add(companyLocationsPoco); return(Ok()); }