26 lines
705 B
C#
26 lines
705 B
C#
using DevExtreme.AspNet.Data;
|
|
using DevExtreme.AspNet.Mvc;
|
|
using OSS.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using System.Web.Security;
|
|
|
|
namespace OSS.Controllers
|
|
{
|
|
public class ListofProjectAPIController : ApiController
|
|
{
|
|
|
|
private OSSDBContext myContext = new OSSDBContext();
|
|
[HttpGet]
|
|
public HttpResponseMessage ShowProject(DataSourceLoadOptions loadOptions, string Username)
|
|
{
|
|
|
|
return Request.CreateResponse(DataSourceLoader.Load(myContext.ProjectProfilesExternal.Where(t=>t.AddedBy==Username), loadOptions));
|
|
}
|
|
}
|
|
}
|