public IActionResult Create(Model.SourceValue row, string ReturnUrl, int ID) { row.SourceTypeID = int.Parse(RouteData.Values["id"].ToString()); var sourcetype = Repository.GetSingle <SourceType>(row.SourceTypeID); if (sourcetype.ExpertID != this.Repository.ExpertID) { throw new Exception("خطا"); } return(this.CreateBase(row, ReturnUrl)); }
public IActionResult Edit(Model.SourceValue row, string returnURL) { row.SourceTypeID = int.Parse(RouteData.Values["id"].ToString()); return(this.EditBase(row, returnURL)); }