Пример #1
0
    public ReturnData AJAX_GetDetailPhoto(int idPostMedia)
    {
        try
        {
            DataClassesDataContext       db         = new DataClassesDataContext();
            Class_Post_Media             _postMedia = new Class_Post_Media();
            Dictionary <string, dynamic> data       = new Dictionary <string, dynamic>();
            data.Add("PostMedia", _postMedia.Dynamic_GetDataDetail_PostMedia(db, idPostMedia));
            return(ReturnData.MessageSuccess("OK", data));
        }
        catch (Exception ex)
        {
            Class_Log_Error log = new Class_Log_Error();
            log.Insert(ex.Message, ex.StackTrace);

            return(ReturnData.MessageFailed(ex.Message, null));
        }
    }
Пример #2
0
    public ReturnData AJAX_FE_GetPost_ByIDPageCategory(int idPageCategory)
    {
        try
        {
            DataClassesDataContext       db         = new DataClassesDataContext();
            Class_Post_Media             _postMedia = new Class_Post_Media();
            Dictionary <string, dynamic> data       = new Dictionary <string, dynamic>();
            data.Add("Post", Dynamic_FE_GetPost_ByIDPageCategory(db, idPageCategory));
            return(ReturnData.MessageSuccess("OK", data));
        }
        catch (Exception ex)
        {
            Class_Log_Error log = new Class_Log_Error();
            log.Insert(ex.Message, ex.StackTrace);

            return(ReturnData.MessageFailed(ex.Message, null));
        }
    }