Exemple #1
0
        public override Task <CompanyJobSkillPayload> ReadCompanyJobSkill(CompanyJobSkillIdRequest request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

            return(new Task <CompanyJobSkillPayload>(() => new CompanyJobSkillPayload()
            {
                Id = poco.Id.ToString(),
                Importance = poco.Importance,
                Job = poco.Job.ToString(),
                Skill = poco.Skill,
                SkillLevel = poco.SkillLevel
            }));
        }
Exemple #2
0
        // GET: CompanyJobSkill/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CompanyJobSkillPoco companyJobSkillPoco = companyJobSkillLogic.Get(id.Value);// db.CompanyJobSkills.Find(id);

            if (companyJobSkillPoco == null)
            {
                return(HttpNotFound());
            }
            return(View(companyJobSkillPoco));
        }
        // GET: CompanyJobSkill/Edit/5
        public ActionResult Edit(Guid id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CompanyJobSkillPoco companyJobSkillPoco = _logic.Get(id);  // db.CompanyJobSkill.Find(id);

            if (companyJobSkillPoco == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobSkillPoco.Job);
            return(View(companyJobSkillPoco));
        }
Exemple #4
0
        public override Task <CompanyJobSkillsPayload> ReadCompanyJobSkill(CompanyJobSkillsIdRequest request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

            _ = poco ?? throw new ArgumentException("No Company Job Skill Record with this Id Found ");

            return(new Task <CompanyJobSkillsPayload>(() => new CompanyJobSkillsPayload()
            {
                Id = poco.Id.ToString(),
                Importance = poco.Importance,
                Job = poco.Job.ToString(),
                Skill = poco.Skill,
                SkillLevel = poco.SkillLevel
            }));
        }
Exemple #5
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id)
        {
            ApplicantProfileRepository <CompanyJobSkillPoco> repo = new ApplicantProfileRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic log = new CompanyJobSkillLogic(repo);

            return(log.Get(Guid.Parse(Id)));
        }
Exemple #6
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id)
        {
            Guid id    = new Guid(Id);
            var  logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            return(logic.Get(id));
        }
Exemple #7
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string id)
        {
            EFGenericRepository <CompanyJobSkillPoco> companyjobskillrepo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic _companyjobskilllogic = new CompanyJobSkillLogic(companyjobskillrepo);

            return(_companyjobskilllogic.Get(Guid.Parse(id)));
        }
Exemple #8
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id)
        {
            EFGenericRepository <CompanyJobSkillPoco> repo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic logic = new CompanyJobSkillLogic(repo);

            return(logic.Get(Guid.Parse(Id)));
        }
Exemple #9
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id)
        {
            var logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));
            CompanyJobSkillPoco companyJobSkillPoco = new CompanyJobSkillPoco();

            companyJobSkillPoco = logic.Get(Guid.Parse(Id));
            return(companyJobSkillPoco);
        }
Exemple #10
0
        public IHttpActionResult GetCompanyJobSkill(Guid companyJobSkillId)
        {
            CompanyJobSkillPoco poco = _logic.Get(companyJobSkillId);

            if (poco == null)
            {
                return(NotFound());
            }
            return(Ok(poco));
        }
        public IHttpActionResult GetCompanyJobSkill(Guid companyjobskillId)
        {
            CompanyJobSkillPoco cjs = _logic.Get(companyjobskillId);

            if (cjs == null)
            {
                return(NotFound());
            }
            return(Ok(cjs));
        }
Exemple #12
0
        public ActionResult GetCompanyJobSkill(Guid jobskillid)
        {
            CompanyJobSkillPoco poco = _logic.Get(jobskillid);

            if (poco is null)
            {
                return(NotFound());
            }

            return(Ok(poco));
        }
Exemple #13
0
        public ActionResult GetCompanyJobSkill(Guid Id)
        {
            var poco = _logic.Get(Id);

            if (poco == null)
            {
                return(NotFound());
            }

            return(Ok(poco));
        }
Exemple #14
0
        public ActionResult GetCompanyJobSkill(Guid companyJobSkillId)
        {
            CompanyJobSkillPoco companyJobSkillPoco = _logic.Get(companyJobSkillId);

            if (companyJobSkillPoco == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(companyJobSkillPoco));
            }
        }
        public ActionResult GetCompanyJobSkill(Guid Id)
        {
            CompanyJobSkillPoco poco = _logic.Get(Id);

            if (poco != null)
            {
                return(Ok(poco));
            }
            else
            {
                return(NotFound());
            }
        }
 public IHttpActionResult  GetCompanyJobSkill(Guid CompanyJobSkillId)
 {
     try
     {
         CompanyJobSkillPoco poco = _logic.Get(CompanyJobSkillId);
         if (poco == null)
         {
             return(NotFound());
         }
         return(Ok(poco));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        public override Task <ComJobSkillProto> GetCompanyJobSkill(ComJobSkillIdRequest request, ServerCallContext context)
        {
            CompanyJobSkillPoco poco = _logic.Get(Guid.Parse(request.Id));

            if (poco is null)
            {
                throw new ArgumentOutOfRangeException("Id does not exist");
            }
            return(new Task <ComJobSkillProto>(
                       () => new ComJobSkillProto
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                Skill = poco.Skill,
                SkillLevel = poco.SkillLevel,
                Importance = poco.Importance
            }));
        }
        public override Task <CompanyJobSkillPayLoad> ReadCompanyJobSkill(IdRequestCompJobSkill request, ServerCallContext context)
        {
            CompanyJobSkillPoco poco = _logic.Get(Guid.Parse(request.Id));

            if (poco is null)
            {
                throw new ArgumentOutOfRangeException("poco is null");
            }

            return(new Task <CompanyJobSkillPayLoad>(
                       () => new CompanyJobSkillPayLoad()
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                Skill = poco.Skill,
                SkillLevel = poco.SkillLevel,
                Importance = poco.Importance
            }
                       ));
        }
Exemple #19
0
 public IHttpActionResult GetCompanyJobSkill(Guid CompanyJobSkillId)
 {
     try
     {
         CompanyJobSkillPoco item = _logicObj.Get(CompanyJobSkillId);
         if (item != null)
         {
             return(this.Ok(item));
         }
         else
         {
             return(this.NotFound());
         }
     }
     catch (Exception e)
     {
         HttpResponseMessage response =
             this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e);
         throw new HttpResponseException(response);
     }
 }
Exemple #20
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string id)
        {
            var _logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            return(_logic.Get(Guid.Parse(id)));
        }
Exemple #21
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(Guid Id)
        {
            CompanyJobSkillLogic logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            return(logic.Get(Id));
        }
Exemple #22
0
 public CompanyJobSkillPoco GetSingleCompanyJobSkillPoco(Guid Id)
 {
     return(_logicJobSkill.Get(Id));
 }
Exemple #23
0
 public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id)
 {
     return(_cjsLogic.Get(Guid.Parse(Id)));
 }
Exemple #24
0
 public CompanyJobSkillPoco GetSingleCompanyJobSkill(string id)
 {
     return(_CompanyJobSkillLogic.Get(Guid.Parse(id)));
 }
Exemple #25
0
        public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id)
        {
            var reference = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            return(reference.Get(Guid.Parse(Id)));
        }