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