public static UserShiftRevenue CreatePlazaRevenue(UserShift shift, PlazaGroup plazaGroup) { if (null == shift || null == plazaGroup) { return(null); } UserShiftRevenue inst = new UserShiftRevenue(); plazaGroup.AssignTo(inst); shift.AssignTo(inst); return(inst); }
/// <summary> /// Create Plaza Revenue. /// </summary> /// <param name="shift">The UserShift instance.</param> /// <param name="plazaGroup">The PlazaGroup instance.</param> /// <returns>Returns UserShiftRevenue instance.</returns> public static NDbResult <UserShiftRevenue> CreatePlazaRevenue( UserShift shift, PlazaGroup plazaGroup) { var result = new NDbResult <UserShiftRevenue>(); if (null == shift || null == plazaGroup) { result.ParameterIsNull(); result.data = null; } else { UserShiftRevenue inst = Create(); plazaGroup.AssignTo(inst); shift.AssignTo(inst); result.data = inst; result.Success(); } return(result); }