Ejemplo n.º 1
0
        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 ");
        }
Ejemplo n.º 2
0
 private async Task <ServicesResult> JoinPrsToChart()
 {
     return(await _chartEmployeeManager.JoinPrsToChart(Guid.Parse(_prsId), Guid.Parse(_chartId)));
 }