Esempio n. 1
0
        public ActionResult <StaffCertificateInfoAddViewModel> AddStaffCertificateInfo(StaffCertificateInfoAddViewModel staffCertificateInfoAddViewModel)
        {
            StaffCertificateInfoAddViewModel staffCertificateInfoAdd = new StaffCertificateInfoAddViewModel();

            try
            {
                staffCertificateInfoAdd = _staffService.AddStaffCertificateInfo(staffCertificateInfoAddViewModel);
            }
            catch (Exception es)
            {
                staffCertificateInfoAdd._failure = true;
                staffCertificateInfoAdd._message = es.Message;
            }
            return(staffCertificateInfoAdd);
        }