Esempio n. 1
0
        // GET api/<controller>
        /// <summary>
        /// Gets this instance.
        /// </summary>
        /// <returns></returns>
        //public AttachmentsCollection PutSearch(string method,[FromBody] SearchFilter value)
        //{
        //    return AttachmentsManager.Search(value);
        //}

        // DELETE api/<controller>/5
        /// <summary>
        /// Deletes the specified identifier.
        /// </summary>
        /// <param name="id">The identifier.</param>
        public void Delete(Guid id, int CompanyID)
        {
            AttachmentsManager.DeleteItem(id, CompanyID);
        }
 private void TopicsAttachmentsController()
 {
     _attachmentsManager = new AttachmentsManager(DbContext);
 }
Esempio n. 3
0
 // PUT api/<controller>/5
 /// <summary>
 /// Puts the specified identifier.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 /// <exception cref="HttpResponseException"></exception>
 public Attachments Put(string id, [FromBody] Attachments value)
 {
     return(AttachmentsManager.UpdateItem(value));
 }
Esempio n. 4
0
 // POST api/<controller>
 /// <summary>
 /// Posts the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public Attachments Post([FromBody] Attachments value)
 {
     return(AttachmentsManager.AddItem(value));
 }
Esempio n. 5
0
 // GET api/<controller>/5
 /// <summary>
 /// Gets the specified COM group identifier.
 /// </summary>
 /// <param name="AttachmentsId">The COM group identifier.</param>
 /// <returns></returns>
 public Attachments Get(Guid AttachID, int CompanyID)
 {
     return(AttachmentsManager.GetItemByID(AttachID, CompanyID));
 }
Esempio n. 6
0
 public AttachmentsCollection GetbyUser(string usr, int CompanyID)
 {
     return(AttachmentsManager.GetbyUser(usr, CompanyID));
 }
Esempio n. 7
0
 // GET api/<controller>
 /// <summary>
 /// Gets this instance.
 /// </summary>
 /// <returns></returns>
 public AttachmentsCollection Get(int CompanyID)
 {
     return(AttachmentsManager.GetAllItem(CompanyID));
 }