示例#1
0
 public static TagInput SetChecked(this TagInput tag, bool check)
 {
     if (check)
     {
         tag.Checked("checked");
     }
     return(tag);
 }
        public async Task <IActionResult> Put(short id, [FromBody] TagInput model)
        {
            if (ModelState.IsValid)
            {
                var tag = this.unitOfWork.TagsRepository.GetById(id);
                if (tag == null)
                {
                    return(NotFound());
                }
                else
                {
                    tag.Name = model.Name;
                    this.unitOfWork.TagsRepository.Update(tag);
                    await this.unitOfWork.Save();

                    return(NoContent());
                }
            }
            else
            {
                return(BadRequest());
            }
        }
示例#3
0
 public static TagInput onselect(this TagInput tag, string value)
 {
     tag.OnSelect = value; return(tag);
 }
示例#4
0
 public static TagInput usemap(this TagInput tag, string value)
 {
     tag.UseMap = value; return(tag);
 }
示例#5
0
 public static TagInput src(this TagInput tag, string value)
 {
     tag.Src = value; return(tag);
 }
示例#6
0
 public static TagInput size(this TagInput tag, int value)
 {
     tag.Size = value; return(tag);
 }
示例#7
0
 public static TagInput disabled(this TagInput tag, Disabled value)
 {
     tag.Disabled = value; return(tag);
 }
示例#8
0
 public static TagInput value(this TagInput tag, string value)
 {
     tag.Value = value; return(tag);
 }
示例#9
0
 public static TagInput onmouseout(this TagInput tag, string value)
 {
     tag.OnMouseOut = value; return(tag);
 }
示例#10
0
 public static TagInput onmousemove(this TagInput tag, string value)
 {
     tag.OnMouseMove = value; return(tag);
 }
示例#11
0
 public static TagInput onmouseup(this TagInput tag, string value)
 {
     tag.OnMouseUp = value; return(tag);
 }
示例#12
0
 public static TagInput onmousedown(this TagInput tag, string value)
 {
     tag.OnMouseDown = value; return(tag);
 }
示例#13
0
 public static TagInput ondblclick(this TagInput tag, string value)
 {
     tag.OnDblClick = value; return(tag);
 }
示例#14
0
 public static TagInput dir(this TagInput tag, Dir value)
 {
     tag.Dir = value; return(tag);
 }
示例#15
0
 public static TagInput xmllang(this TagInput tag, string value)
 {
     tag.XmlLang = value; return(tag);
 }
示例#16
0
 public static TagInput type(this TagInput tag, InputType value)
 {
     tag.Type = value; return(tag);
 }
示例#17
0
 public static TagInput name(this TagInput tag, string value)
 {
     tag.Name = value; return(tag);
 }
示例#18
0
 public static TagInput onkeypress(this TagInput tag, string value)
 {
     tag.OnKeyPress = value; return(tag);
 }
示例#19
0
 public static TagInput @checked(this TagInput tag, Checked value)
 {
     tag.Checked = value; return(tag);
 }
示例#20
0
 public static TagInput onkeydown(this TagInput tag, string value)
 {
     tag.OnKeyDown = value; return(tag);
 }
示例#21
0
 public static TagInput @readonly(this TagInput tag, ReadOnly value)
 {
     tag.ReadOnly = value; return(tag);
 }
示例#22
0
 public static TagInput onkeyup(this TagInput tag, string value)
 {
     tag.OnKeyUp = value; return(tag);
 }
示例#23
0
 public static TagInput maxlength(this TagInput tag, int value)
 {
     tag.MaxLength = value; return(tag);
 }
示例#24
0
 public static TagInput accesskey(this TagInput tag, char value)
 {
     tag.AccessKey = value; return(tag);
 }
示例#25
0
 public static TagInput alt(this TagInput tag, string value)
 {
     tag.Alt = value; return(tag);
 }
示例#26
0
 public static TagInput tabindex(this TagInput tag, int value)
 {
     tag.TabIndex = value; return(tag);
 }
示例#27
0
 public static TagInput ismap(this TagInput tag, IsMap value)
 {
     tag.IsMap = value; return(tag);
 }
示例#28
0
 public static TagInput onfocus(this TagInput tag, string value)
 {
     tag.OnFocus = value; return(tag);
 }
示例#29
0
 public static TagInput onchange(this TagInput tag, string value)
 {
     tag.OnChange = value; return(tag);
 }
示例#30
0
 public static TagInput onblur(this TagInput tag, string value)
 {
     tag.OnBlur = value; return(tag);
 }