public JsonResult DailyTADAEntrySave(TADADetails objTADADetails) { try { objLoginHelper = (LoginHelper)Session["LogInInformation"]; Hrm_EmployeeNDateWiseTADAEntry objEmployeeNDateWiseTADAEntry = new Hrm_EmployeeNDateWiseTADAEntry(); objEmployeeNDateWiseTADAEntry.YearMonth = objLoginHelper.YearMonthCurrent; objEmployeeNDateWiseTADAEntry.LocationCode = objLoginHelper.LocationCode; objEmployeeNDateWiseTADAEntry.EmployeeID = objTADADetails.EmployeeID; objEmployeeNDateWiseTADAEntry.DateOfTADA = objTADADetails.DateOfTADA; objEmployeeNDateWiseTADAEntry.TAAmount = objTADADetails.TAAmount; objEmployeeNDateWiseTADAEntry.ParticularsForTA = objTADADetails.ParticularsForTA; objEmployeeNDateWiseTADAEntry.DAAmount = objTADADetails.DAAmount; objEmployeeNDateWiseTADAEntry.ParticularsForDA = objTADADetails.ParticularsForDA; objEmployeeNDateWiseTADAEntry.DaysOfPendingEntry = objTADADetails.DaysOfPendingEntry; if (string.IsNullOrEmpty(objTADADetails.EditEmployee)) { objEmployeeNDateWiseTADAEntry.CreatedBy = objLoginHelper.LogInID; objEmployeeNDateWiseTADAEntry.CreatedOn = DateTime.Now; hrmsData.CreateTADAEntry(objEmployeeNDateWiseTADAEntry); } else { objEmployeeNDateWiseTADAEntry.ModifiedBy = objLoginHelper.LogInID; objEmployeeNDateWiseTADAEntry.ModifiedOn = DateTime.Now; hrmsData.UpdateTADAEntry(objEmployeeNDateWiseTADAEntry); } return(new JsonResult { Data = ExceptionHelper.ExceptionMessage("") }); } catch (Exception ex) { return(new JsonResult { Data = ExceptionHelper.ExceptionMessage(ex) }); } }