コード例 #1
0
        public string Add()
        {
            this.DocumentUrl   = CustomFile.SaveDocumentFile(this.DocumentFileBase, "MedicineReport", this.Id, "MedicineReport");
            this.ComplainantId = AuthenticatedUserModel.GetUserFromIdentity().Id;
            var newId = _medicineReportService.Add(this);

            _medicineService.MedicineReportInc(this.MedicineInfoId);
            return(newId);
        }
コード例 #2
0
ファイル: MedicineModel.cs プロジェクト: mahmudkoli/Medicine
 public string Add()
 {
     this.ImageUrl      = CustomFile.SaveImageFile(this.ImageFileBase, this.Name, this.Id, "Medicine");
     this.ContributorId = AuthenticatedUserModel.GetUserFromIdentity().Id;
     return(_medicineService.AddByUser(this));
 }