public async Task <long> UpdateWorkCertificateCategoryAsync(WorkCertificateCategoryDto workCertificateCategoryDto)
        {
            var workCertificateCategory = new WorkCertificateCategory();

            Mapper.Map(workCertificateCategoryDto, workCertificateCategory);
            var rowsUpdated = await workCertificateCategoryRepository.UpdateWorkCertificateCategoryAsync(workCertificateCategory, workCertificateCategoryDto.MappingScheme);

            return(rowsUpdated);
        }
Ejemplo n.º 2
0
        public async Task <IHttpActionResult> UpdateWorkCertificateCategory(WorkCertificateCategoryDto workCertificateCategoryDto)
        {
            await workCertificateCategoryManager.UpdateWorkCertificateCategoryAsync(workCertificateCategoryDto);

            return(Ok());
        }
Ejemplo n.º 3
0
        public async Task <IHttpActionResult> CreateWorkCertificateCategory(WorkCertificateCategoryDto workCertificateCategoryDto)
        {
            var workCertificateCategoryId = await workCertificateCategoryManager.CreateWorkCertificateCategoryAsync(workCertificateCategoryDto);

            return(Ok(workCertificateCategoryId));
        }