Example #1
0
        public List <CompanyLocationPoco> GetAllCompanyLocation()
        {
            EFGenericRepository <CompanyLocationPoco> companylocationrepo = new EFGenericRepository <CompanyLocationPoco>(false);
            CompanyLocationLogic _companylocationlogic = new CompanyLocationLogic(companylocationrepo);

            return(_companylocationlogic.GetAll());
        }
Example #2
0
        public List <CompanyLocationPoco> GetAllCompanyLocation()
        {
            var repo  = new EFGenericRepository <CompanyLocationPoco>(false);
            var logic = new CompanyLocationLogic(repo);

            return(logic.GetAll());
        }
Example #3
0
        public List <CompanyLocationPoco> GetAllCompanyLocation()
        {
            ApplicantProfileRepository <CompanyLocationPoco> repo = new ApplicantProfileRepository <CompanyLocationPoco>(false);
            CompanyLocationLogic log = new CompanyLocationLogic(repo);

            return(log.GetAll());
        }
Example #4
0
        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));
        }
Example #8
0
        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));
        }
Example #11
0
 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);
     }
 }
Example #12
0
        public ActionResult GetAllCompanyLocations()
        {
            var companyLocations = _logic.GetAll();

            if (companyLocations == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(companyLocations));
            }
        }
Example #13
0
        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));
            }
        }
Example #16
0
        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));
     }
 }
Example #18
0
        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));
        }
Example #19
0
        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));
        }
Example #20
0
 public IList <CompanyLocationPoco> GetAllCompanyLocationPoco()
 {
     return(_logicCompanyLocation.GetAll());
 }
Example #21
0
 public List <CompanyLocationPoco> GetAllCompanyLocation()
 {
     return(_clLogic.GetAll());
 }
Example #22
0
        public IHttpActionResult GetCompanyLocation()
        {
            List <CompanyLocationPoco> companyLocationData = _logic.GetAll();

            return(Ok(companyLocationData));
        }
Example #23
0
        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()));
        }