/// <summary> /// Save Box information to the database /// </summary> /// <param name="lscartonInfo">list of information of box</param> /// <returns>Guid of New Box Id</returns> public Guid SaveCartonInfo(cstCartonInfo lscartonInfo) { Guid _return = Guid.Empty; try { CartonInfo _caton = new CartonInfo(); _caton.CartonID = lscartonInfo.CartonID; _caton.BOXNumber = lscartonInfo.BOXNumber; _caton.CartonNumber = lscartonInfo.CartonNumber; _caton.ShipmentNumber = lscartonInfo.ShipmentNumber; _caton.Printed = lscartonInfo.Printed; entx3v6.AddToCartonInfoes(_caton); entx3v6.SaveChanges(); _return = _caton.CartonID; } catch (Exception) { } return(_return); }