public virtual void Create(Tag tag) { if (tag == null) throw new ArgumentNullException("tag"); Dispatcher.Dispatch(AddTag.CreateFrom(tag)); Cache.AddToList(tag); }
public static AddTag CreateFrom(Tag tag) { return new AddTag { EventId = tag.EventId, Id = tag.Id, Name = tag.Name, UpdatedDate = tag.UpdatedDate, UserId = tag.UserId, LogId = tag.LogId, LogName = tag.LogName, Date = tag.Date }; }
public override void Create(Tag tag) { Repository.HttpRequestor.Post(Repository.Configuration.DataServiceLocation + "tags", tag, Repository.SessionManager.GetCurrent()); Cache.AddToList(tag); }
public void Post(Tag tag) { TagRepository.Create(tag); }