public bool SaveEarning(Earning earning) { var earnings = _database.GetCollection<Item>(EARNING_COLLECTION); try { earnings.Save(earning); } catch { return false; } return true; }
public Earning Edit(Earning earning) { return _mongoContext.GetEarning(earning.Date); }
public bool Save(Earning earning) { return _mongoContext.SaveEarning(earning); }
public Earning Create(Earning earning) { earning.Onuses = _helper.GetOnusesPerEarning(earning.Date, earning.Next); return earning; }