Blog.Logic.Core.EducationLogic.Add C# (CSharp) Method

Add() public method

public Add ( Education education ) : Education
education Blog.Common.Contracts.Education
return Blog.Common.Contracts.Education
        public Education Add(Education education)
        {
            try
            {
                return EducationMapper.ToDto(_educationRepository.Add(EducationMapper.ToEntity(education)));
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }