public static List <ApiGetTaskListReturnModel> GetTaskList(string standardEffDate, int?siteId, int?programId, int?assignedToUserId, int?assignedByUserId) { List <ApiGetTaskListReturnModel> _result; using (var db = new Data.DBMEdition01Context()) { _result = db.ApiGetTaskList(standardEffDate, siteId, programId, assignedToUserId, assignedByUserId); } return(_result); }