Forked from RichoDemus/gist:3d5bd0dc1fea1d072cb5
Last active
August 29, 2015 14:08
-
-
Save FredrikBitio/ca5f81dd96275fd45388 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class backendKlass | |
{ | |
public static Users[] getUsers() | |
{ | |
using (entity db = new entity()) | |
{ | |
Users[] list = db.getUsers(); /* stored procedure i db */ | |
list = formatUsers(list); | |
return list; | |
} | |
} | |
public Users[] formatUsers(list) | |
{ | |
/* gör något */ | |
return list; | |
} | |
} | |
public class Controller | |
{ | |
public PartialView Users(){ | |
Users[] list = backendKlass.getUsers(); | |
return RenderPartialView(UserView, list); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment