public async Task SaveLogDieuKhien(long idthietbi, long idthongtin, string trangthai, string des) { try { LogDieuKhien item = new LogDieuKhien(); item.IDUSER = AbpSession.UserId.Value; item.IDTHIETBI = idthietbi; item.IDTHONGTINQUANLY = idthongtin; item.CHUOIDIEUKHIEN = des; item.TRANGTHAI = trangthai; item.thoigian = DateTime.Now; _repository.Insert(item); } catch (Exception ex) { } }
public async Task <LogDieuKhienDto> GetForEdit(GetLogDieuKhien input) { LogDieuKhien nhomVT = await _repository.GetAsync(input.Id); return(nhomVT.MapTo <LogDieuKhienDto>()); }