public static void AddOperation(PetData pet, DateTime date, UserData user) { OperationRepository opRep = new OperationRepository(); opRep.Create(new Operation { PetId = pet.Id, OperationDate = date.Date, UserId = user.Id }); }
public static void AddOperation(PetData pet, DateTime date, UserData user) { OperationRepository opRep = new OperationRepository(); opRep.Create(new Operation { PetId = pet.Id, OperationDate = date.Date, UserId = user.Id }); }