public ActionResult AssignManagerToEmployee(Int64 id, Int64 managerId, string AppraisalProcessId) { Int64 result = 0; MTSHRDataLayer.Appraisal data = new MTSHRDataLayer.Appraisal(); try { result = data.AssignManagerToEmployee(id, managerId, Convert.ToInt64(AppraisalProcessId)); if (result > 0) { result = 1; } else { result = 0; } } catch (Exception e) { BaseExceptionHandler.HandleException(ref e); } return(Json(new { result = result })); }