Now can change forum data
This commit is contained in:
@@ -72,9 +72,13 @@ namespace BL.Services
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void Update(FoorumDTO foorum)
|
||||
public FoorumDTO Update(FoorumDTO foorum)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
var domain = _foorumRepository.GetById(foorum.FoorumId);
|
||||
domain = _factory.Update(domain, foorum);
|
||||
_foorumRepository.Update(domain);
|
||||
_foorumRepository.SaveChanges();
|
||||
return _factory.Create(domain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user