public void Entries(Guid id, EntryModel model)
 {
     _directoryRepository.Modify(Mapper.Map<DirectoryEntry>(model));
 }
 public JsonResult Entries(EntryModel request)
 {
     return Json(Mapper.Map<EntryModel>(_directoryRepository.Add(Mapper.Map<DirectoryEntry>(request))));
 }