Esempio n. 1
0
        // GET: ApplicantResumePocoes/Edit/5
        public async Task <IActionResult> Edit(Guid id)
        {
            var poco = _logic.Get(id);

            if (poco == null)
            {
                return(NotFound());
            }
            PopulateApplicantList(poco.Applicant);
            return(View(poco));
        }
        // GET: ApplicantResume/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ApplicantResumePoco applicantResumePoco = applicantResumeLogic.Get(id.Value); //db.ApplicantResumes.Find(id);

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

            if (applicantResumePoco == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Applicant = new SelectList(db.ApplicantProfile, "Id", "Country", applicantResumePoco.Applicant);
            return(View(applicantResumePoco));
        }
Esempio n. 4
0
        public ApplicantResumePoco GetSingleApplicantResume(string id)
        {
            EFGenericRepository <ApplicantResumePoco> repo = new EFGenericRepository <ApplicantResumePoco>(false);
            ApplicantResumeLogic logic = new ApplicantResumeLogic(repo);

            return(logic.Get(Guid.Parse(id)));
        }
Esempio n. 5
0
        public ApplicantResumePoco GetSingleApplicantResume(string Id)
        {
            EFGenericRepository <ApplicantResumePoco> ApplicantResumeRepo = new EFGenericRepository <ApplicantResumePoco>(false);
            var Logic = new ApplicantResumeLogic(ApplicantResumeRepo);

            return(Logic.Get(Guid.Parse(Id)));
        }
Esempio n. 6
0
        public ApplicantResumePoco GetSingleApplicantResume(string Id)
        {
            ApplicantProfileRepository <ApplicantResumePoco> repo = new ApplicantProfileRepository <ApplicantResumePoco>(false);
            ApplicantResumeLogic log = new ApplicantResumeLogic(repo);

            return(log.Get(Guid.Parse(Id)));
        }
Esempio n. 7
0
        public ApplicantResumePoco GetSingleApplicantResume(string Id)
        {
            Guid id    = new Guid(Id);
            var  logic = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false));

            return(logic.Get(id));
        }
Esempio n. 8
0
        public ApplicantResumePoco GetSingleApplicantResume(string Id)
        {
            ApplicantResumeLogic logic = new ApplicantResumeLogic
                                             (new EFGenericRepository <ApplicantResumePoco>(false));

            return(logic.Get(Guid.Parse(Id)));
        }
Esempio n. 9
0
        public ApplicantResumePoco GetSingleApplicantResume(string Id)
        {
            var logic = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false));
            ApplicantResumePoco applicantResumePoco = new ApplicantResumePoco();

            applicantResumePoco = logic.Get(Guid.Parse(Id));
            return(applicantResumePoco);
        }
        public IHttpActionResult GetApplicantResume(Guid id)
        {
            ApplicantResumePoco poco = _logic.Get(id);

            if (poco == null)
            {
                return(NotFound());
            }
            return(Ok(poco));
        }
Esempio n. 11
0
        public IHttpActionResult GetApplicantResume(Guid ApplicantResumeId)
        {
            ApplicantResumePoco applicantResume = _logic.Get(ApplicantResumeId);

            if (applicantResume == null)
            {
                return(NotFound());
            }
            return(Ok(applicantResume));
        }
Esempio n. 12
0
        public ActionResult GetApplicantResume(Guid Id)
        {
            var poco = _logic.Get(Id);

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

            return(Ok(poco));
        }
Esempio n. 13
0
        public ActionResult GetApplicantResume(Guid Resumeid)
        {
            ApplicantResumePoco poco = _logic.Get(Resumeid);

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

            return(Ok(poco));
        }
Esempio n. 14
0
        public override Task <ApplicantResumePayload> ReadApplicantResume(ApplicantResumeIdRequest request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

            return(new Task <ApplicantResumePayload>(() => new ApplicantResumePayload()
            {
                Id = poco.Id.ToString(),
                Applicant = poco.Applicant.ToString(),
                Resume = poco.Resume,
                LastUpdated = poco.LastUpdated is null ? null : Timestamp.FromDateTime((DateTime)poco.LastUpdated)
            }));
        public override Task <ApplicantResumePayload> ReadApplicantResume(ApplicantResumeIdRequest request, ServerCallContext context)
        {
            var poco = _logic.Get(Guid.Parse(request.Id));

            _ = poco ?? throw new ArgumentNullException("Applicant resume record with this Id not found");
            return(new Task <ApplicantResumePayload>(() => new ApplicantResumePayload()
            {
                Id = poco.Id.ToString(),
                Applicant = poco.Applicant.ToString(),
                Resume = poco.Resume,
                LastUpdated = poco.LastUpdated is null ? null : Timestamp.FromDateTime((DateTime)poco.LastUpdated)
            }));
Esempio n. 16
0
        // GET: ApplicantResume
        public ActionResult Index()
        {
            Guid _userProfileId = (Guid)TempData["Applicant"];

            TempData.Keep();
            ApplicantResumePoco poco = null;
            object _resumeID         = null;

            try {
                _resumeID = (from x in _logic.GetAll() where x.Applicant == _userProfileId select x.Id).FirstOrDefault();
                poco      = _logic.Get((Guid)_resumeID);
            }
            catch { }
            if (poco == null)
            {
                return(RedirectToAction("Create", "ApplicantResume"));
            }
            else
            {
                return(View(poco));
            }
        }
        public ActionResult GetApplicantResume(Guid applicantResumeId)
        {
            ApplicantResumePoco applicantResume = _logic.Get(applicantResumeId);

            if (applicantResume == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(applicantResume));
            }
        }
Esempio n. 18
0
        public ActionResult GetApplicantResume(Guid Id)
        {
            ApplicantResumePoco poco = _logic.Get(Id);

            if (poco != null)
            {
                return(Ok(poco));
            }
            else
            {
                return(NotFound());
            }
        }
        public override Task <AppResumeProto> GetApplicantResume(AppResumeIdRequest request, ServerCallContext context)
        {
            ApplicantResumePoco poco = _logic.Get(Guid.Parse(request.Id));

            if (poco is null)
            {
                throw new ArgumentOutOfRangeException("Id not found in system");
            }
            return(new Task <AppResumeProto>(
                       () => new AppResumeProto
            {
                Id = poco.Id.ToString(),
                Applicant = poco.Applicant.ToString(),
                Resume = poco.Resume,
                LastUpdated = poco.LastUpdated is null ? null : Timestamp.FromDateTime((DateTime)poco.LastUpdated)
            }));
 public IHttpActionResult GetApplicantResume(Guid applicantResumeId)
 {
     try
     {
         ApplicantResumePoco poco = _logic.Get(applicantResumeId);
         if (poco == null)
         {
             return(NotFound());
         }
         return(Ok(poco));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
Esempio n. 21
0
        public override Task <ApplicantResumePayLoad> ReadApplicantResume(IdRequestAppResume request, ServerCallContext context)
        {
            ApplicantResumePoco poco = _logic.Get(Guid.Parse(request.Id));

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

            return(new Task <ApplicantResumePayLoad>(
                       () => new ApplicantResumePayLoad()
            {
                Id = poco.Id.ToString(),
                Applicant = poco.Applicant.ToString(),
                Resume = poco.Resume.ToString(),
                LastUpdated = poco.LastUpdated is null ? null : Timestamp.FromDateTime((DateTime)poco.LastUpdated),
            }
 public IHttpActionResult GetApplicantResume(Guid ApplicantResumeId)
 {
     try
     {
         ApplicantResumePoco item = _logicObj.Get(ApplicantResumeId);
         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);
     }
 }
Esempio n. 23
0
        public ApplicantResumePoco GetSingleApplicantResume(string Id)
        {
            var reference = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false));

            return(reference.Get(Guid.Parse(Id)));
        }
Esempio n. 24
0
 public ApplicantResumePoco GetSingleApplicantResumePoco(Guid Id)
 {
     return(_logicApplicantResume.Get(Id));
 }
Esempio n. 25
0
 public ApplicantResumePoco GetSingleApplicantResume(string Id)
 {
     return(_rLogic.Get(Guid.Parse(Id)));
 }