public List <CompanyLocationPoco> GetAllCompanyLocation() { EFGenericRepository <CompanyLocationPoco> companylocationrepo = new EFGenericRepository <CompanyLocationPoco>(false); CompanyLocationLogic _companylocationlogic = new CompanyLocationLogic(companylocationrepo); return(_companylocationlogic.GetAll()); }
public List <CompanyLocationPoco> GetAllCompanyLocation() { var repo = new EFGenericRepository <CompanyLocationPoco>(false); var logic = new CompanyLocationLogic(repo); return(logic.GetAll()); }
public List <CompanyLocationPoco> GetAllCompanyLocation() { ApplicantProfileRepository <CompanyLocationPoco> repo = new ApplicantProfileRepository <CompanyLocationPoco>(false); CompanyLocationLogic log = new CompanyLocationLogic(repo); return(log.GetAll()); }
public List <CompanyLocationPoco> GetAllCompanyLocation() { List <CompanyLocationPoco> companyLocationPoco = new List <CompanyLocationPoco>(); var logic = new CompanyLocationLogic(new EFGenericRepository <CompanyLocationPoco>(false)); companyLocationPoco = logic.GetAll(); return(companyLocationPoco); }
public IHttpActionResult GetAllCompanyLocation() { var applicants = _logic.GetAll(); if (applicants == null) { return NotFound(); } return Ok(applicants); }
public ActionResult GetAllCompanyLocation() { List <CompanyLocationPoco> poco = _logic.GetAll(); if (poco is null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetAllCompanyLocation() { var companyLocationList = _logic.GetAll(); if (companyLocationList == null) { return(NotFound()); } return(Ok(companyLocationList)); }
public IHttpActionResult GetAllCompanyLocation() { List <CompanyLocationPoco> pocos = logic.GetAll(); if (pocos == null) { return(NotFound()); } return(Ok(pocos)); }
public IHttpActionResult GetallCompanyLocation() { List <CompanyLocationPoco> result = _logic.GetAll(); if (result == null) { return(NotFound()); } return(Ok(result)); }
public ActionResult GetAllCompanyLocation() { var poco = _logic.GetAll(); if (poco == null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetAllCompanyLocation() { try { IEnumerable <CompanyLocationPoco> itemList = _logicObj.GetAll(); if (itemList != null) { return(this.Ok(itemList)); } else { return(this.NotFound()); } } catch (Exception e) { HttpResponseMessage response = this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e); throw new HttpResponseException(response); } }
public ActionResult GetAllCompanyLocations() { var companyLocations = _logic.GetAll(); if (companyLocations == null) { return(NotFound()); } else { return(Ok(companyLocations)); } }
public ActionResult GetCompanyLocation() { List <CompanyLocationPoco> companyLocationPocos = _logic.GetAll(); if (companyLocationPocos == null) { return(NotFound()); } else { return(Ok(companyLocationPocos)); } }
public ActionResult GetAllCompanyLocation() { var Company = _logic.GetAll(); if (Company == null) { return(NotFound()); } else { return(Ok(Company)); } }
public ActionResult GetAllCompanyLocation() { var applicants = _logic.GetAll(); if (applicants == null) { return(NotFound()); } else { return(Ok(applicants)); } }
public ActionResult GetAllCompanyLocation() { var companylist = _logicref.GetAll(); if (companylist != null) { return(Ok(companylist)); } else { return(NotFound()); } }
public IHttpActionResult GetAllCompanyLocation() { try { List <CompanyLocationPoco> pocos = _logic.GetAll(); if (pocos == null) { return(NotFound()); } return(Ok(pocos)); } catch (Exception e) { return(InternalServerError(e)); } }
public override Task <AllCompanyLocationPayload> GetAllCompanyLocation(Empty request, ServerCallContext context) { var Pocos = _logic.GetAll(); _ = Pocos ?? throw new ArgumentNullException(" No Company Location record was found"); var AllCompanyLocationPayload = new AllCompanyLocationPayload(); Pocos.ForEach(poco => AllCompanyLocationPayload.CompanyLocations.Add(new CompanyLocationPayload { Id = poco.Id.ToString(), Company = poco.Company.ToString(), Street = poco.Street, City = poco.City, Province = poco.Province, CountryCode = poco.CountryCode, PostalCode = poco.PostalCode, })); return(new Task <AllCompanyLocationPayload>(() => AllCompanyLocationPayload)); }
public override Task <CompLocArray> GetAllCompanyLocation(Empty request, ServerCallContext context) { List <CompanyLocationPoco> pocos = _logic.GetAll(); List <CompLocProto> compLocList = new List <CompLocProto>(); foreach (var poco in pocos) { CompLocProto compLoc = new CompLocProto(); compLoc.Id = poco.Id.ToString(); compLoc.Company = poco.Company.ToString(); compLoc.PostalCode = poco.PostalCode; compLoc.Province = poco.Province; compLoc.Street = poco.Street; compLoc.City = poco.City; compLoc.CountryCode = poco.CountryCode; compLocList.Add(compLoc); } CompLocArray compLocArray = new CompLocArray(); compLocArray.CompLoc.AddRange(compLocList); return(new Task <CompLocArray>(() => compLocArray)); }
public IList <CompanyLocationPoco> GetAllCompanyLocationPoco() { return(_logicCompanyLocation.GetAll()); }
public List <CompanyLocationPoco> GetAllCompanyLocation() { return(_clLogic.GetAll()); }
public IHttpActionResult GetCompanyLocation() { List <CompanyLocationPoco> companyLocationData = _logic.GetAll(); return(Ok(companyLocationData)); }
public List <CompanyLocationPoco> GetAllCompanyLocation() { var reference = new CompanyLocationLogic(new EFGenericRepository <CompanyLocationPoco>(false)); return(reference.GetAll()); }
public ActionResult GetAllCompanyLocation() { return(Ok(_logic.GetAll())); }
//private CareerCloudContext db = new CareerCloudContext(); // GET: CompanyLocation public ActionResult Index() { var companyLocations = companyLocationLogic.GetAll();// db.CompanyLocations.Include(c => c.CompanyProfile); return(View(companyLocations.ToList())); }