예제 #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);
 }