예제 #1
0
        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());
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="engine"></param>
 /// <returns></returns>
 public override bool ShowConfigDialog(Core.Root engine)
 {
     return(true);
 }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="engine"></param>
 /// <param name="defaultRenderer"></param>
 public override void SaveConfiguration(Core.Root engine, string defaultRenderer)
 {
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="engine"></param>
 public override void SaveConfiguration(Core.Root engine)
 {
 }
예제 #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="engine"></param>
 /// <returns></returns>
 public override bool RestoreConfiguration(Core.Root engine)
 {
     return(true);
 }