public void CreateNoManga(NoMangaModel model)
        {
            var     mapper  = MapHelper.Mapping <NoMangaModel, NoManga>();
            NoManga noManga = mapper.Map <NoManga>(model);

            this.repository.AddAndSave <NoManga>(noManga);
        }
        public void UpdateNoManga(int id, NoMangaModel model)
        {
            var noManga = this.repository.FirstorDefault <NoManga>(x => x.Id == id);

            if (noManga == null)
            {
                throw new NullReferenceException();
            }
            var mapper = MapHelper.Mapping <NoManga, NoMangaModel>();

            noManga = mapper.Map <NoManga>(model);

            this.repository.UpdateAndSave(noManga);
        }
 public void PutNoManga(int id, [FromBody] NoMangaModel model)
 {
     compositionService.UpdateNoManga(id, model);
 }
 public void PostNoManga([FromBody] NoMangaModel model)
 {
     compositionService.CreateNoManga(model);
 }