public async Task <Languages_Label> UpdatelabelAsync(ViewModels.PageData model)
        {
            var data = await _appContext.Languages_Label.Where(x => x.Id == model.Id).FirstOrDefaultAsync();

            if (data != null)
            {
                //data.Labelname = model.LabelName;
                //data.Pagename = model.PageName;
                //data.Page_Displayname = model.PageDisplayName;
                data.Value        = model.value;
                data.Updated_Date = DateTime.Now;

                await _appContext.SaveChangesAsync();
            }


            return(data);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Updatelabel([FromBody] ViewModels.PageData model)
        {
            var result = await _service.UpdatelabelAsync(model);

            return(Ok(result));
        }