Example #1
0
        public override Task <CompanyJobDescriptionPayload> ReadCompanyJobDescription(CompanyJobDescriptionIdRequest request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

            return(new Task <CompanyJobDescriptionPayload>(() => new CompanyJobDescriptionPayload()
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                JobName = poco.JobName,
                JobDescriptions = poco.JobDescriptions
            }));
        }
        // GET: CompanyJobDescription/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CompanyJobDescriptionPoco companyJobDescriptionPoco = companyJobDescriptionLogic.Get(id.Value); //db.CompanyJobDescriptions.Find(id);

            if (companyJobDescriptionPoco == null)
            {
                return(HttpNotFound());
            }
            return(View(companyJobDescriptionPoco));
        }
        public override Task <CompanyJobDescriptionPayload> ReadCompanyJobDescription(CompanyJobDescriptionIdRequest request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

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

            return(new Task <CompanyJobDescriptionPayload>(() => new CompanyJobDescriptionPayload()
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                JobName = poco.JobName,
                JobDescription = poco.JobDescriptions
            }));
        }
        // GET: CompanyJobDescription/Edit/5
        public ActionResult Edit(Guid id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CompanyJobDescriptionPoco companyJobDescriptionPoco = _logic.Get(id);  // db.CompanyJobDescription.Find(id);

            if (companyJobDescriptionPoco == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobDescriptionPoco.Job);
            return(View(companyJobDescriptionPoco));
        }
Example #5
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id)
        {
            Guid id    = new Guid(Id);
            var  logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

            return(logic.Get(id));
        }
Example #6
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id)
        {
            EFGenericRepository <CompanyJobDescriptionPoco> repo = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic logic = new CompanyJobDescriptionLogic(repo);

            return(logic.Get(Guid.Parse(Id)));
        }
Example #7
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id)
        {
            ApplicantProfileRepository <CompanyJobDescriptionPoco> repo = new ApplicantProfileRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic log = new CompanyJobDescriptionLogic(repo);

            return(log.Get(Guid.Parse(Id)));
        }
Example #8
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string id)
        {
            EFGenericRepository <CompanyJobDescriptionPoco> companyjobdescriptionrepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic _companyjobdescriptionlogic = new CompanyJobDescriptionLogic(companyjobdescriptionrepo);

            return(_companyjobdescriptionlogic.Get(Guid.Parse(id)));
        }
Example #9
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id)
        {
            var logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));
            CompanyJobDescriptionPoco companyJobDescriptionPoco = new CompanyJobDescriptionPoco();

            companyJobDescriptionPoco = logic.Get(Guid.Parse(Id));
            return(companyJobDescriptionPoco);
        }
Example #10
0
        public IHttpActionResult GetCompanyJobsDescription(Guid companyjobdescriptionId)
        {
            CompanyJobDescriptionPoco cjd = _logic.Get(companyjobdescriptionId);

            if (cjd == null)
            {
                return(NotFound());
            }
            return(Ok(cjd));
        }
        public ActionResult GetCompanyJobsDescription(Guid jobdescid)
        {
            CompanyJobDescriptionPoco poco = _logic.Get(jobdescid);

            if (poco is null)
            {
                return(NotFound());
            }
            return(Ok(poco));
        }
Example #12
0
        public IHttpActionResult GetCompanyJobsDescription(Guid id)
        {
            CompanyJobDescriptionPoco poco = logic.Get(id);

            if (poco == null)
            {
                return(NotFound());
            }
            return(Ok(poco));
        }
Example #13
0
        public IHttpActionResult GetCompanyJobsDescription(Guid companyJobDescriptionId)
        {
            CompanyJobDescriptionPoco appEdu = _logic.Get(companyJobDescriptionId);

            if (appEdu == null)
            {
                return(NotFound());
            }
            return(Ok(appEdu));
        }
Example #14
0
        public ActionResult GetCompanyJobsDescription(Guid id)
        {
            var poco = _logic.Get(id);

            if (poco != null)
            {
                return(Ok(poco));
            }
            else
            {
                return(NotFound());
            }
        }
Example #15
0
        public ActionResult GetCompanyJobsDescription(Guid companyjobdescriptionid)
        {
            CompanyJobDescriptionPoco poco = _logicref.Get(companyjobdescriptionid);

            if (poco != null)
            {
                return(Ok(poco));
            }
            else
            {
                return(NotFound());
            }
        }
Example #16
0
        public ActionResult GetCompanyJobsDescription(Guid companyJobDescriptionId)
        {
            CompanyJobDescriptionPoco companyJobDescription = _logic.Get(companyJobDescriptionId);

            if (companyJobDescription == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(companyJobDescription));
            }
        }
Example #17
0
        public ActionResult GetCompanyJobsDescription(Guid Id)
        {
            CompanyJobDescriptionPoco poco = _logic.Get(Id);

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

            else
            {
                return(Ok(poco));
            }
        }
 public IHttpActionResult  GetCompanyJobDescription(Guid CompanyJobDescriptionId)
 {
     try
     {
         CompanyJobDescriptionPoco poco = _logic.Get(CompanyJobDescriptionId);
         if (poco == null)
         {
             return(NotFound());
         }
         return(Ok(poco));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
Example #19
0
        public override Task <CompJobDescProto> GetCompanyJobDescription(CompJobDescIdRequest request, ServerCallContext context)
        {
            CompanyJobDescriptionPoco poco = _logic.Get(Guid.Parse(request.Id));

            if (poco is null)
            {
                throw new ArgumentOutOfRangeException("Id in input not found");
            }
            return(new Task <CompJobDescProto>(
                       () => new CompJobDescProto
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                JobName = poco.JobName,
                JobDescriptions = poco.JobDescriptions
            }));
        }
Example #20
0
        public override Task <CompanyJobDescriptionPayLoad> ReadCompanyJobDescription(IdRequestCompJobDesc request, ServerCallContext context)
        {
            CompanyJobDescriptionPoco poco = _logic.Get(Guid.Parse(request.Id));

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

            return(new Task <CompanyJobDescriptionPayLoad>(
                       () => new CompanyJobDescriptionPayLoad()
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                JobName = poco.JobName,
                JobDescriptions = poco.JobDescriptions
            }
                       ));
        }
Example #21
0
 public IHttpActionResult GetCompanyJobsDescription(Guid CompanyJobDescriptionId)
 {
     try
     {
         CompanyJobDescriptionPoco item = _logicObj.Get(CompanyJobDescriptionId);
         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);
     }
 }
Example #22
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string id)
        {
            var _logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

            return(_logic.Get(Guid.Parse(id)));
        }
Example #23
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(Guid Id)
        {
            CompanyJobDescriptionLogic logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

            return(logic.Get(Id));
        }
Example #24
0
 public CompanyJobDescriptionPoco GetSingleCompanyJobDescriptionPoco(Guid Id)
 {
     return(_logicAJL.Get(Id));
 }
Example #25
0
 public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id)
 {
     return(_cjdLogic.Get(Guid.Parse(Id)));
 }
Example #26
0
        public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id)
        {
            var reference = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

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