TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
raman p
NA
24
1.8k
cannot implicitly convert model to viewmodel error
Aug 3 2018 5:55 AM
{
public class FileManagerBL : GenericBL<FileManager>
{
public FileManagerBL() : base()
{
}
public FileManagerBL(Alcon.Data.AlconDataContext context) : base(context)
{
}
FileManager _objFileManager;
FileManagerBL _objFileManagerBL;
FileManagerVM _objFileManagerVM;
public FileManagerVM Insert(FileManagerVM _objFileManagerVM)
{
Alcon.Data.AlconDataContext db = new Data.AlconDataContext();
try
{
_objFileManagerBL = new FileManagerBL(db);
_objFileManager = new FileManager();
_objFileManagerVM = new FileManagerVM();
var FileManagerr = _objFileManagerVM.ToModel();
_objFileManager = _objFileManagerBL.Insert(FileManagerr);
//_objFileManager.BrokerID = _objFileManagerVM.BrokerId;
//_objFileManager.FamilyId = _objFileManagerVM.FamilyId;
//_objFileManager.FileName = _objFileManagerVM.FileName;
//_objFileManager.FilePath = _objFileManagerVM.FilePath;
//_objFileManager.IsDeleted = _objFileManagerVM.IsDeleted;
//FileManagerr.BrokerID = .ImageName;
//_objDocumentUploadVM.Image = _objDocumentUpload.ImageGUID;
//_objDocumentUploadVM.Client_Id = _objDocumentUpload.Client_Id;
//_objDocumentUploadVM.ID = _objDocumentUpload.ID;
return _objFileManagerr;
} cannot implicitly convert model to viewmodel.. error occurred
Reply
Answers (
1
)
When inputting data form main one other always on form main
convert List<List<>> to XML in c#