public bool AddHoliday(holidaysDto dataHoliday, int nodeId) { try { SigesoftEntitiesModel cnx = new SigesoftEntitiesModel(); string newId = Common.Utils.GetNewId(nodeId, Utils.GetNextSecuentialId(nodeId, 51), "FR"); dataHoliday.v_HolidayId = newId; holidays entityHolidays = holidaysAssembler.ToEntity(dataHoliday); cnx.AddToholidays(entityHolidays); return(cnx.SaveChanges() > 0); } catch (Exception) { return(false); } }