raman p

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
 
 
 

Answers (1)