public DataModel.Response.InsertResponse CreatePresentation(DataModel.Model.PresentationModel presentation) { try { IPresentationRepository preRepository = RepositoryClassFactory.GetInstance().GetPresentationRepository(); Presentation _pre = MapperUtil.CreateMapper().Mapper.Map <PresentationModel, Presentation>(presentation); object id = preRepository.Insert(_pre); return(new InsertResponse { InsertID = id.ToString(), ErrorCode = (int)ErrorCode.None, Message = Resources.Resource.msg_create_success }); } catch (Exception ex) { return(new InsertResponse { ErrorCode = (int)ErrorCode.Error, Message = ex.Message }); } }