Example #1
0
        public ActionResult RemoveEmployeeMappingDetails(Int64 status, Int64 weightage, Int64 rowID)
        {
            //Int64 result = 0;
            //MTSHRDataLayer.Appraisal data = new MTSHRDataLayer.Appraisal();
            //var Mapping_Detail = data.RemoveEmployeeMappingDetails(EmpId);
            //return Json(new { success = true, result1 = JsonConvert.SerializeObject(Mapping_Detail) }, JsonRequestBehavior.AllowGet);

            Int64 result = 0;

            MTSHRDataLayer.Appraisal data = new MTSHRDataLayer.Appraisal();
            try
            {
                result = data.RemoveEmployeeMappingDetails(status, weightage, rowID);
                if (status == 1)
                {
                    result = 1;
                }
                else if (status == 2)
                {
                    result = 2;
                }
                else
                {
                    result = 0;
                }
            }
            catch (Exception e)
            {
                BaseExceptionHandler.HandleException(ref e);
            }
            return(Json(new { result = result }));
        }