Monthly Archives: February 2013

Twitter Bootstrap Css Extension

Example - To add bottom padding to the row class of bootstrap.

  1. create a style.css file
  2. add the following code in style.css:
  3. .bottom-buffer { margin-bottom:60px; }
  4. make the div tag with "row" class look like this:
<div class="row bottom-buffer"></div>

C# Mapper Code

  1. Mapping ViewModel with Model.
  2. Make sure your viewmodel fields are named just like fields in model.
  3. EditMerchants (ViewModel)
  4. TsMerchants (Model)
  5. Downloaded via NuGet  - http://automapper.codeplex.com/
Mapper.CreateMap();
TsMerchant e = Mapper.Map(model);