private void Insert(int projectId, [Inject] IAssignmentDal dal) { using (BypassPropertyChecks) { var item = new ProjectTracker.Dal.AssignmentDto { ProjectId = projectId, ResourceId = this.ResourceId, Assigned = ReadProperty(AssignedProperty), RoleId = this.Role }; dal.Insert(item); TimeStamp = item.LastChanged; } }
public void Insert(Assignment entity) { _assignmentDal.Insert(entity); }