public async System.Threading.Tasks.Task <ActionResult> JoinEmployeeToChart(string chartid, string employeeId) { if (Request.IsAjaxRequest()) { var result = await _chartEmployeeService.JoinPrsToChart(Guid.Parse(employeeId), Guid.Parse(chartid)); if (result.Success) { return(Json(new { result = "ok" }, JsonRequestBehavior.AllowGet)); } throw new InvalidOperationException(" is Not Save Employee To Chart "); } throw new InvalidOperationException(" is not Valid Method Type Method Is Ajax "); }
private async Task <ServicesResult> JoinPrsToChart() { return(await _chartEmployeeManager.JoinPrsToChart(Guid.Parse(_prsId), Guid.Parse(_chartId))); }