/// <summary> /// Close the request training raised by manager /// </summary> /// <value>RaiseID</value> /// <value>TrainingTypeID</value> public ActionResult CloseTrainingRequest(string raiseID, string trainingTypeID) { int trainingID = Convert.ToInt32(trainingTypeID); //Initialize model TrainingModel RaiseTraining = new TrainingModel(); RaiseTraining.RaiseID = Convert.ToInt32(raiseID); RaiseTraining.Status = CommonConstants.Closed; RaiseTraining.Comments = string.Empty; Master objmaster = new Master(); RaiseTraining.UserEmpId = objmaster.GetEmployeeIDByEmailID(); //pass model and delete technical training string result = string.Empty; result = _service.UpdateRaiseTrainingStatus(RaiseTraining); //set message on view page returned from above operation TempData[CommonConstants.Result] = string.Format(CommonConstants.StringFormat, result, CommonConstants.Request_Closed); return(RedirectToAction(CommonConstants.ViewTechnicalTrainingRequestGrid, new { trainingTypeID = trainingTypeID })); }
public string UpdateRaiseTrainingStatus(TrainingModel RaiseTraining) { return(_repository.UpdateRaiseTrainingStatus(RaiseTraining)); }