예제 #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
 public string Add()
 {
     this.ImageUrl      = CustomFile.SaveImageFile(this.ImageFileBase, this.Name, this.Id, "Medicine");
     this.ContributorId = AuthenticatedUserModel.GetUserFromIdentity().Id;
     return(_medicineService.AddByUser(this));
 }