public IHttpActionResult GetObjectiveMainByEmployeeId() { string userId = User.Identity.GetUserName(); JobObjectiveData data = new JobObjectiveData(); var objective = data.GetObjectiveMainByEmployeeId(userId); return(Ok(objective)); }
public IHttpActionResult GetEmployeeWhoHaveSubmitAppraisal() { try { JobObjectiveData employeesData = new JobObjectiveData(); return(Ok(employeesData.GetEmployeeWhoHaveSubmitAppraisal())); } catch (Exception EX_NAME) { return(BadRequest(EX_NAME.Message)); } }
public IHttpActionResult GetEmployeeById(string id) { try { JobObjectiveData employeesData = new JobObjectiveData(); return(Ok(employeesData.GetEmployeeById(id))); } catch (Exception EX_NAME) { return(BadRequest(EX_NAME.Message)); } }
public IHttpActionResult GetIndividualEmployeeObjectiveList() { try { string userId = User.Identity.GetUserName(); JobObjectiveData employeesData = new JobObjectiveData(); return(Ok(employeesData.GetIndividualEmployeeObjectiveList(userId))); } catch (Exception EX_NAME) { return(BadRequest(EX_NAME.Message)); } }
public IHttpActionResult GetObjectiveMainByEmployeeId() { try { string userId = User.Identity.GetUserName(); JobObjectiveData data = new JobObjectiveData(); var objective = data.GetObjectiveMainByEmployeeId(userId); return Ok(objective); } catch (Exception EX_NAME) { return BadRequest(EX_NAME.Message); } }
public IHttpActionResult GetEmployeeJobDescriptionSingleObject() { try { //string userId = User.Identity.GetUserName(); string userId = User.Identity.GetUserName(); JobObjectiveData employeesData = new JobObjectiveData(); return(Ok(employeesData.GetEmployeeJobDescriptionSingleObject(userId))); } catch (Exception EX_NAME) { return(BadRequest(EX_NAME.Message)); } }