public TaskType(string TypeAlias) { TaskTypeEntity = ApplicationContext.Current.Services.TaskService.GetTaskTypeByAlias(TypeAlias); if (TaskTypeEntity == null) { throw new NullReferenceException("No task type found by alias " + TypeAlias); } }
public TaskType(int TaskTypeId) { TaskTypeEntity = ApplicationContext.Current.Services.TaskService.GetTaskTypeById(TaskTypeId); if (TaskTypeEntity == null) { throw new NullReferenceException("No task type found by alias " + TaskTypeId); } }
internal TaskType(Umbraco.Core.Models.TaskType tt) { TaskTypeEntity = tt; }