public Register11 Create(Register11 model) { Register11 register; using (var context = new WebKikDataContext()) { register = context.Registers11.Add(new Register11 { Year = model.Year, OwnerProjectCompanyId = model.OwnerProjectCompanyId, Currency = model.Currency, Type = RegisterType.Register11, DecisionOfLiquidationData = model.DecisionOfLiquidationData == DateTime.MinValue ? null: model.DecisionOfLiquidationData, CompletionOfLiquidationData = model.CompletionOfLiquidationData == DateTime.MinValue ? null : model.DecisionOfLiquidationData }); context.SaveChanges(); } return(register); }
public Register11 CalculateRegisterFields(Register11 register) { throw new NotImplementedException(); }