Getting a forum with id's works
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user