Getting a forum with id's works

This commit is contained in:
2017-06-12 14:43:31 +03:00
parent 475f0d539c
commit bf9ec07808
7 changed files with 60 additions and 11 deletions

View File

@@ -1,13 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using BL.DTOs;
using BL.Factories;
using BL.Interfaces;
using DAL.Domain;
using DAL.Interfaces;
namespace BL.Services
@@ -41,7 +36,8 @@ namespace BL.Services
public FoorumDTO Get(int id)
{
throw new NotImplementedException();
var f =_foorumRepository.GetById(id);
return _factory.Create(f, withPosts:true);
}
public IEnumerable<FoorumDTO> GetAll()