public Dividend(int id, int quantity, int generalMeetingID, int depositID, GeneralMeeting generalMeeting, bool isCreated, bool isDifferent) { Id = id; Quantity = quantity; GeneralMeetingID = generalMeetingID; DepositID = depositID; GeneralMeeting = generalMeeting; IsCreated = isCreated; IsDifferent = isDifferent; }
public void UpdateGeneralMeeting(GeneralMeeting generalMeeting) { Guard.AgainstNull(() => generalMeeting); //generalMeeting.Validate(); using (var uow = _uowFactory.Create()) { uow.RepoOf<GeneralMeeting>().UpdateAll(generalMeeting); uow.SaveChanges(); } }
public GeneralMeeting CreateGeneralMeeting(GeneralMeeting generalMeeting) { Guard.AgainstNull(() => generalMeeting); //generalMeeting.Validate(); using (var uow = _uowFactory.Create()) { uow.RepoOf<GeneralMeeting>().Add(generalMeeting); uow.SaveChanges(); return generalMeeting; } }
private GeneralMeetingViewModel GetGeneralMeetingViewModel(GeneralMeeting generalMeeting) { return new GeneralMeetingViewModel { Id = generalMeeting.Id, MeetingDate = generalMeeting.MeetingDate, Stock = _cache.GetStock(generalMeeting.StockID), DividendRate = generalMeeting.DividendRate }; }