public int SubmitContactEnquiry(ContactEnquiryDTO model) { ContactEnquiry contact = new ContactEnquiry(); contact = mapper.Map <ContactEnquiry>(model); return(NotificationRepository.SubmitContactEnquiry(contact)); }
public int SubmitContactEnquiry(ContactEnquiry model) { model.CreatedDate = DateTime.Now; DbContext.ContactEnquiries.Add(model); return(DbContext.SaveChanges()); }