/// <summary> /// Renmae content item /// </summary> /// <param name="contentItemId"></param> /// <param name="name"></param> /// <returns></returns> public async Task <ContentItem> RenameContentItem([FromBody] string name, long contentItemId) { if (string.IsNullOrEmpty(name)) { throw new Exception("Name can't be empty"); } var item = await _contentItemRepository.RenameContentItem(contentItemId, name); return(_mapper.Map <ContentItem>(item)); }