public async Task <ActionResult> Post([FromBody] Core.Root value) { await this._repository.UpdateAsync(value); await _context.SaveChangesAsync(); AddCacheValue <Core.Root>(baseKey + value.UNITID, value); return(Ok()); }
public static Core.Root ToTransferObject(this Data.Model.Root data) { var core = new Core.Root(); core.UNITID = data.Unitid; core.OPEID = data.Opeid; core.OPEID6 = data.Opeid6; core.LATITUDE = data.Latitude; core.LONGITUDE = data.Longitude; return(core); }
public static Data.Model.Root ToDataObject(this Core.Root core) { var data = new Data.Model.Root(); data.Unitid = core.UNITID; data.Opeid = core.OPEID; data.Opeid6 = core.OPEID6; data.Latitude = core.LATITUDE; data.Longitude = core.LONGITUDE; return(data); }
/// <summary> /// /// </summary> /// <param name="engine"></param> /// <returns></returns> public override bool ShowConfigDialog(Core.Root engine) { return(true); }
/// <summary> /// /// </summary> /// <param name="engine"></param> /// <param name="defaultRenderer"></param> public override void SaveConfiguration(Core.Root engine, string defaultRenderer) { }
/// <summary> /// /// </summary> /// <param name="engine"></param> public override void SaveConfiguration(Core.Root engine) { }
/// <summary> /// /// </summary> /// <param name="engine"></param> /// <returns></returns> public override bool RestoreConfiguration(Core.Root engine) { return(true); }