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()); } }
public static TagInput onselect(this TagInput tag, string value) { tag.OnSelect = value; return(tag); }
public static TagInput usemap(this TagInput tag, string value) { tag.UseMap = value; return(tag); }
public static TagInput src(this TagInput tag, string value) { tag.Src = value; return(tag); }
public static TagInput size(this TagInput tag, int value) { tag.Size = value; return(tag); }
public static TagInput disabled(this TagInput tag, Disabled value) { tag.Disabled = value; return(tag); }
public static TagInput value(this TagInput tag, string value) { tag.Value = value; return(tag); }
public static TagInput onmouseout(this TagInput tag, string value) { tag.OnMouseOut = value; return(tag); }
public static TagInput onmousemove(this TagInput tag, string value) { tag.OnMouseMove = value; return(tag); }
public static TagInput onmouseup(this TagInput tag, string value) { tag.OnMouseUp = value; return(tag); }
public static TagInput onmousedown(this TagInput tag, string value) { tag.OnMouseDown = value; return(tag); }
public static TagInput ondblclick(this TagInput tag, string value) { tag.OnDblClick = value; return(tag); }
public static TagInput dir(this TagInput tag, Dir value) { tag.Dir = value; return(tag); }
public static TagInput xmllang(this TagInput tag, string value) { tag.XmlLang = value; return(tag); }
public static TagInput type(this TagInput tag, InputType value) { tag.Type = value; return(tag); }
public static TagInput name(this TagInput tag, string value) { tag.Name = value; return(tag); }
public static TagInput onkeypress(this TagInput tag, string value) { tag.OnKeyPress = value; return(tag); }
public static TagInput @checked(this TagInput tag, Checked value) { tag.Checked = value; return(tag); }
public static TagInput onkeydown(this TagInput tag, string value) { tag.OnKeyDown = value; return(tag); }
public static TagInput @readonly(this TagInput tag, ReadOnly value) { tag.ReadOnly = value; return(tag); }
public static TagInput onkeyup(this TagInput tag, string value) { tag.OnKeyUp = value; return(tag); }
public static TagInput maxlength(this TagInput tag, int value) { tag.MaxLength = value; return(tag); }
public static TagInput accesskey(this TagInput tag, char value) { tag.AccessKey = value; return(tag); }
public static TagInput alt(this TagInput tag, string value) { tag.Alt = value; return(tag); }
public static TagInput tabindex(this TagInput tag, int value) { tag.TabIndex = value; return(tag); }
public static TagInput ismap(this TagInput tag, IsMap value) { tag.IsMap = value; return(tag); }
public static TagInput onfocus(this TagInput tag, string value) { tag.OnFocus = value; return(tag); }
public static TagInput onchange(this TagInput tag, string value) { tag.OnChange = value; return(tag); }
public static TagInput onblur(this TagInput tag, string value) { tag.OnBlur = value; return(tag); }