public async Task AddOrUpdate([FromBody] TemplateLabel input) { await CheckPermission(); var sqlR = new TemplateLabelsRepository(); await sqlR.AddOrUpdate(input); sqlR.Dispose(); }
public async Task Delete([FromBody] TemplateLabel equipment) { await CheckPermission(); var er = new TemplateLabelsRepository(); await er.Delete(equipment.Id); er.Dispose(); }
public async Task <JsonResult> GetAll(int skip, int limit) { await CheckPermission(); var sqlR = new TemplateLabelsRepository(); var result = await sqlR.GetAll(skip, limit); sqlR.Dispose(); return(Json(result)); }