Now can change forum data

This commit is contained in:
2017-06-12 15:46:53 +03:00
parent 44c733b582
commit 3707a8dce2
5 changed files with 35 additions and 4 deletions

View File

@@ -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);
}
}
}