public Product Create(string name, string desc, long categoryId, SeperationFactor seperationFactor) { AuditableCreate(); Validate(name); Name = name; Description = desc; CategoryId = categoryId; SeperationFactor = seperationFactor; return(this); }
public Product Update(UserModel user, string name, string desc, long categoryId, SeperationFactor seperationFactor) { _user = user; AuditableUpdate(); Validate(name); Name = name; Description = desc; CategoryId = categoryId; SeperationFactor = seperationFactor; return(this); }