/// <summary> /// This Function Will add new livelead to database /// </summary> /// <param name="liveLead">liveLead</param> /// <returns>bool depending upon result</returns> public bool AddNewLiveLead(LiveLead liveLead) { try { using (var unitOfWork = new EFUnitOfWork()) { var liveLeadRepo = new LiveLeadRepository(new EFRepository <LiveLead>(), unitOfWork); liveLeadRepo.Add(liveLead); liveLeadRepo.Save(); return(true); } } catch (Exception ex) { CommonErrorLogger.CommonErrorLog(ex, System.Reflection.MethodBase.GetCurrentMethod().Name); throw; } }
public void Delete(LiveLead entity) { Repository.Delete(entity); }
public void Add(LiveLead entity) { Repository.Add(entity); }