Пример #1
0
        /// <summary>
        /// Equipment Upd
        /// </summary>
        public async Task <EquipmentDto> EquipmentUpd(EquipmentDto dtoItem, string userGuid, string serviceGroupGuid)
        {
            var item = new EquipmentEntity
            {
                equipment_guid      = dtoItem.equipment_guid,
                equipment_type_guid = dtoItem.equipment_type_guid,
                equipment_info      = JsonDataExtensions.EntityToJsonData(dtoItem)
            };

            var equipment = await EquipmentInfo.EquipmentUpd(item, userGuid, serviceGroupGuid);

            var result = JsonDataExtensions.JsonToEntityData <EquipmentDto>(equipment.equipment_info);

            return(result);
        }