Esempio n. 1
0
        private void mView_Send(object sender, EventArgs e)
        {
            var dto = new DtoAuthor {
                AuthorId = mView.AuthorId, FirstName = mView.FirstName, LastName = mView.LastName
            };

            if (dto.AuthorId > 0)
            {
                mView.Message = _authorDm.Update(dto);
            }
            else
            {
                mView.Message = _authorDm.Add(dto);
            }
        }
Esempio n. 2
0
 public IActionResult Create()
 {
     return(View(adm.Add()));
 }
Esempio n. 3
0
 public IActionResult OnGet()
 {
     Author = _authorDm.Add();
     return(Page());
 }