Exemplo n.º 1
0
        public Stat CreateStat(Author author, string title, string description)
        {
            Validate.NotEmpty(description, "description");
            Validate.NotEmpty(title, "title");

            var stat = new Stat(title, description, author, DateTime.Now);
            var key = Keyable.CreateKey(title);
            stat.SetKey(key);
            statRepository.SaveOrUpdate(stat);
            return stat;
        }