Question: I need to color rows of my asp.net c# table. 
To show the table, Im using one ASP:Repeater with html: 

```
<div class="panel-body">
<div class="table-responsive">
    <table class="table table-striped table-bordered table-hover" id="dataTables-MaquinasCaidas" >
        <thead>
            <tr>
                <th>Hora Reportada</th>
                <th>Máquina</th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="repeaterMaquinaCaida" runat="server">
                <ItemTemplate>

                    <tr>
                        <td>
                            <asp:Label ID="lblHoraReportada" runat="server" Text='<%# Eval("HoraReportada") %>' />
                        </td>
                        <td>
                            <asp:Label ID="lblNoMaquina" runat="server" Text='<%# Eval("NoMaquina") %>' />
                        </td>
                    </tr>

                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
</div>

```

in .cs page, to fill the table:

```
public void fillTable()
    {
        string query = "SELECT * FROM MaquinaCaida order by HoraReportada asc";
        DataTable tableResponse = SqlComm.SqlDataTable(query);
        TableRow row = new TableRow();
        TableCell cell = new TableCell();
        if (!IsPostBack)
        {
            repeaterMaquinaCaida.DataSource = tableResponse;
            repeaterMaquinaCaida.DataBind();
        }

```

I just need to color some rows based on condition, like: 

```
SELECT * FROM Table WHERE Column = "something";

```

And then change the color of the row to red, for example.

Is there a way to perform this action??

Answer: 
This works for me:

```
import { Model } from "mongoose";

function updateUser(user: Model<IUser>) { 
  cost newUser = new user({
   firstName:'something',
   lastName:'somethingElse',
})
  return newUser.save();
}

```

if you are working in a different file you will need to import also the IUser interface.

Let me know if it works for you.
We ended up solving this by adding the `@types/mongoose` module and then the function as presented in the question worked.