public async Task <ActionResult <ResumeStateVM> > CreateResumeState([FromBody] ResumeStateVM resumestateVM)
        {
            // Validation
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            // Mapping
            ResumeState resumestate = this.mapper.Map <ResumeStateVM, ResumeState>(resumestateVM);

            resumestate = await this.bll.CreateResumeStateAsync(resumestate);

            // Mapping
            return(CreatedAtAction(
                       "GetResumeState",
                       new { id = resumestate.Id },
                       this.mapper.Map <ResumeState, ResumeStateVM>(resumestate)
                       ));
        }
        public async Task <ActionResult <ResumeStateVM> > UpdateResumeState([FromRoute] Guid id, [FromBody] ResumeStateVM resumeStateVM)
        {
            // Validation
            if (!ModelState.IsValid || id != resumeStateVM.Id)
            {
                return(BadRequest(ModelState));
            }

            // Mapping
            ResumeState resumeState = this.mapper.Map <ResumeStateVM, ResumeState>(resumeStateVM);

            resumeState = await this.bll.UpdateResumeStateAsync(resumeState);

            // Mapping
            return(Ok(this.mapper.Map <ResumeState, ResumeStateVM>(resumeState)));
        }