Example #1
0
 internal static ApiItem ToApiItem(BllItem item)
 {
     if (item != null)
         return new ApiItem
         {
             Id = item.Id,
             ListId = item.BllListId,
             Title = item.Title,
             Completed = item.Completed,
             Starred = item.Starred,
             TimeComplete = item.TimeComplete,
             Comment = item.Comment
         };
     return null;
 }
Example #2
0
 internal static DalItem ToDalItem(BllItem item)
 {
     if (item != null)
         return new DalItem
         {
             Completed = item.Completed,
             DalListId = item.BllListId,
             Id = item.Id,
             Starred = item.Starred,
             TimeComplete = item.TimeComplete,
             Title = item.Title,
             Comment = item.Comment
         };
     return null;
 }