using Marco.Pms.Model.Dtos.Util;
using Marco.Pms.Model.Utilities;

namespace Marco.Pms.Model.Mapper
{
    public static class InquiryMapper
    {
        public static Inquiries ToInquiriesFromInquiriesDto(this InquiryDto inquiryDto)
        {
            return new Inquiries
            {
                Id = Guid.Empty,
                OrganizatioinName = inquiryDto.OrganizatioinName,
                OragnizationSize = inquiryDto.OragnizationSize,
                IndustryId = inquiryDto.IndustryId,
                Email = inquiryDto.Email,
                ContactPerson = inquiryDto.ContactPerson,
                ContactNumber = inquiryDto.ContactNumber,
                About = inquiryDto.About
            };
        }

        public static InquiryEmailObject ToInquiryEmailObjectFromInquiriesDto(this InquiryDto inquiryDto, string industryName)
        {
            return new InquiryEmailObject
            {
                OrganizatioinName = inquiryDto.OrganizatioinName,
                OragnizationSize = inquiryDto.OragnizationSize,
                IndustryName = industryName,
                Email = inquiryDto.Email,
                ContactPerson = inquiryDto.ContactPerson,
                ContactNumber = inquiryDto.ContactNumber,
                About = inquiryDto.About
            };
        }
    }
}
